|
|
A084837
|
|
Palindromic primes with nonincreasing digits up to the middle and then nondecreasing.
|
|
2
|
|
|
2, 3, 5, 7, 11, 101, 313, 727, 757, 919, 929, 31013, 72227, 73037, 73237, 74047, 75557, 76367, 76667, 77377, 77477, 91019, 93139, 93239, 94049, 94349, 96269, 96469, 97379, 97579, 98389, 98689, 3211123, 3222223, 3310133, 3321233, 3331333, 7100017, 7300037, 7310137
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
PROG
|
(Python)
from sympy import isprime
from itertools import count, islice, combinations_with_replacement as mc
def agen(): # generator of terms
yield from (2, 3, 5, 7, 11)
for d in count(2):
nind = (int("".join(m+m[:-1][::-1])) for m in mc("9876543210", d))
yield from sorted(filter(isprime, nind))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|