OFFSET
1,1
COMMENTS
EXAMPLE
Illustration of a(6) = 34567876543, the last term of this sequence:
. . . . . . . . . . .
. . . . . 8 . . . . .
. . . . 7 . 7 . . . .
. . . 6 . . . 6 . . .
. . 5 . . . . . 5 . .
. 4 . . . . . . . 4 .
3 . . . . . . . . . 3
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
PROG
(Python)
from sympy import isprime
A244369 = []
for n in range(1, 10):
....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])
........if isprime(p):
............A244369.append(p)
....for m in range(n+1, 10):
........l = ''.join([str(d) for d in range(n, m+1)])
........p = int(l+l[-2::-1])
........if isprime(p):
............A244369.append(p)
CROSSREFS
KEYWORD
nonn,base,fini,full
AUTHOR
Omar E. Pol, Jun 26 2014
STATUS
approved