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!)
A108846 Palindromic primes in which all internal digits are 2. 8

%I #20 Feb 05 2023 15:15:02

%S 727,929,72227,3222223,9222229,322222223,722222227,9222222222229,

%T 72222222222222222222222222227,

%U 72222222222222222222222222222222222222222222222222222222222222227

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

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

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

%t Select[Flatten[Table[10 FromDigits[PadRight[{d},n,2]]+d,{d,{1,3,7,9}},{n,2,70}]],PrimeQ]//Sort (* _Harvey P. Dale_, Feb 05 2023 *)

%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 + "2"*i + f)))

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

%Y Similar sequences for digit d: A108845 (d=1), 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 August 21 01:12 EDT 2024. Contains 375342 sequences. (Running on oeis4.)