A065533 a(n) is smallest prime > 10*a(n-1), a(1) = 3.
3, 31, 311, 3119, 31193, 311951, 3119533, 31195343, 311953441, 3119534441, 31195344413, 311953444133, 3119534441393, 31195344413953, 311953444139539, 3119534441395579, 31195344413955853, 311953444139558593
Offset: 1
Keywords
Links
- Harry J. Smith, Table of n, a(n) for n = 1..100
Crossrefs
Cf. A065122.
Programs
-
Mathematica
NextPrim[n_Integer] := Block[ {k = n + 1}, While[ !PrimeQ[k], k++ ]; Return[k]]; a[1] = 3; a[n_] := NextPrim[ 10*a[n - 1]]; Table[ a[n], {n, 1, 20} ] NestList[NextPrime[10#]&,3,20] (* Harvey P. Dale, Jul 04 2012 *)
-
PARI
{ for (n=1, 100, if (n>1, a=nextprime(10*a), a=3); write("b065533.txt", n, " ", a) ) } \\ Harry J. Smith, Oct 21 2009