A065534 a(n) is smallest prime > 10*a(n-1), a(1) = 5.
5, 53, 541, 5413, 54133, 541339, 5413391, 54133921, 541339231, 5413392311, 54133923121, 541339231241, 5413392312463, 54133923124643, 541339231246433, 5413392312464369, 54133923124643743, 541339231246437473
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] = 5; a[n_] := NextPrim[ 10*a[n - 1]]; Table[ a[n], {n, 1, 20} ] NestList[NextPrime[10#]&,5,20] (* Harvey P. Dale, Dec 25 2024 *)
-
PARI
{ for (n=1, 100, if (n>1, a=nextprime(10*a), a=5); write("b065534.txt", n, " ", a) ) } \\ Harry J. Smith, Oct 21 2009