OFFSET
1,1
EXAMPLE
856147 is in the list since it is prime and is equal to 3210123 in base 8.
PROG
(Python)
from sympy import isprime
A246136 = []
for n in range(1, 8):
....for m in range(n-1, -1, -1):
........l = ''.join([str(d) for d in range(n, m-1, -1)])
........p = int(l+l[-2::-1], 8)
........if isprime(p):
............A246136.append(p)
....for m in range(n+1, 8):
........l = ''.join([str(d) for d in range(n, m+1)])
........p = int(l+l[-2::-1], 8)
........if isprime(p):
............A246136.append(p)
CROSSREFS
KEYWORD
nonn,base,fini,full
AUTHOR
Chai Wah Wu, Aug 15 2014
STATUS
approved