login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A108845
Palindromic primes in which all internal digits are 1.
8
313, 919, 3111111111113, 311111111111113, 1111111111111111111, 11111111111111111111111, 3111111111111111111111111111113
OFFSET
1,1
COMMENTS
a(14) has 1031 digits. - Michael S. Branicky, Jan 27 2023
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..13
PROG
(PARI) n10np1(n, d) = { local(x, y, k); for(x=1, n, for(k=1, 9, y=10^(x+1)*k+floor(10^x*d/9)*10+k; if(isprime(y), print1(y", ")) ) ) }
(Python)
from sympy import isprime
from itertools import count, islice
def agen(): yield from (t for i in count(1) for f in "1379" if isprime(t:=int(f + "1"*i + f)))
print(list(islice(agen(), 10))) # Michael S. Branicky, Jan 27 2023
CROSSREFS
Similar sequences for digit d: A108846 (d=2), A108841 (d=4), A108842 (d=5), A108843 (d=6), A108844 (d=7), A108847 (d=8), A108848 (d=9).
Sequence in context: A068681 A341802 A082436 * A348170 A340464 A272442
KEYWORD
easy,nonn,base
AUTHOR
Cino Hilliard, Jul 11 2005
EXTENSIONS
Name changed by Arkadiusz Wesolowski, Sep 07 2011
STATUS
approved