A065122 a(1) = 2; a(n) is smallest prime > 10*a(n-1).
2, 23, 233, 2333, 23333, 233341, 2333459, 23334601, 233346041, 2333460413, 23334604169, 233346041759, 2333460417637, 23334604176379, 233346041763823, 2333460417638239, 23334604176382489, 233346041763824911
Offset: 1
Keywords
Links
- Harry J. Smith, Table of n, a(n) for n = 1..100
Programs
-
Mathematica
NextPrim[n_Integer] := Block[ {k = n + 1}, While[ !PrimeQ[k], k++ ]; Return[k]]; a[1] = 2; a[n_] := NextPrim[ 10*a[n - 1]]; Table[ a[n], {n, 1, 20} ] NestList[NextPrime[10#]&,2,20] (* Harvey P. Dale, Jun 03 2012 *)
-
PARI
{ for (n=1, 100, if (n>1, a=nextprime(10*a), a=2); write("b065122.txt", n, " ", a) ) } \\ Harry J. Smith, Oct 10 2009
Extensions
More terms from Robert G. Wilson v, Nov 28 2001