OFFSET
1,1
COMMENTS
The last term of this finite series is 97654321012345679.
There are 84 terms. - Michael S. Branicky, Aug 04 2022
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..84 (full sequence)
Patrick De Geest, World of Palindromic Primes
EXAMPLE
31013 belongs to the sequence as it is a palindromic prime in which the digits are decreasing up to the middle digit 0 and then increasing.
PROG
(Python)
from sympy import isprime
from itertools import combinations
def bgen():
for digits in range(1, 20):
for left in combinations("9876543210", (digits+1)//2):
left = "".join(left)
yield int(left + (left[:digits//2])[::-1])
afull = sorted(filter(isprime, bgen()))
print(afull) # Michael S. Branicky, Aug 04 2022
CROSSREFS
KEYWORD
nonn,base,fini,full
AUTHOR
Amarnath Murthy, Jun 23 2001
EXTENSIONS
Corrected and edited by Patrick De Geest, Jun 07 2003
STATUS
approved