login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A108845 Palindromic primes in which all internal digits are 1. 8

%I #18 Jan 31 2023 08:29:10

%S 313,919,3111111111113,311111111111113,1111111111111111111,

%T 11111111111111111111111,3111111111111111111111111111113

%N Palindromic primes in which all internal digits are 1.

%C a(14) has 1031 digits. - _Michael S. Branicky_, Jan 27 2023

%H Michael S. Branicky, <a href="/A108845/b108845.txt">Table of n, a(n) for n = 1..13</a>

%o (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",")) ) ) }

%o (Python)

%o from sympy import isprime

%o from itertools import count, islice

%o def agen(): yield from (t for i in count(1) for f in "1379" if isprime(t:=int(f + "1"*i + f)))

%o print(list(islice(agen(), 10))) # _Michael S. Branicky_, Jan 27 2023

%Y 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).

%K easy,nonn,base

%O 1,1

%A _Cino Hilliard_, Jul 11 2005

%E Name changed by _Arkadiusz Wesolowski_, Sep 07 2011

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 9 18:08 EDT 2024. Contains 375765 sequences. (Running on oeis4.)