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”).

a(1) = 11, a(n) = smallest prime obtained by starting with a(n-1) and prefixing it with one or more copies of (the decimal expansion of) n.
2

%I #19 Oct 15 2017 21:55:32

%S 11,211,33211,44433211,5544433211,65544433211,77777777777765544433211

%N a(1) = 11, a(n) = smallest prime obtained by starting with a(n-1) and prefixing it with one or more copies of (the decimal expansion of) n.

%C Next term has 657 digits and is too large to include. - _David Wasserman_, Jul 01 2005

%C a(9) has 1280 digits: 623 repeats of "9" + 634 repeats of "8" + 12 repeats of "7" + "65544433211". a(10) has 4990 digits: 1855 repeats of "10" + a(9). a(8), a(9), a(10) are verified by PARI ispseudoprime function. - _Dmitry Petukhov_, Oct 15 2017

%e a(3) = 33211 as 3211 is not a prime but 33211 is.

%o (PARI) x=0; n=-1; for(k=1, 9, z=n; while(1, n++; x=x+k*10^n; if(ispseudoprime(x), print(x); break))) \\ _Dmitry Petukhov_, Oct 15 2017

%Y Cf. A088062.

%K base,nonn

%O 1,1

%A _Amarnath Murthy_, Sep 21 2003