[go: up one dir, main page]

login
A065122
a(1) = 2; a(n) is smallest prime > 10*a(n-1).
8
2, 23, 233, 2333, 23333, 233341, 2333459, 23334601, 233346041, 2333460413, 23334604169, 233346041759, 2333460417637, 23334604176379, 233346041763823, 2333460417638239, 23334604176382489, 233346041763824911
OFFSET
1,1
LINKS
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 *)
PROG
(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
CROSSREFS
Sequence in context: A100893 A356557 A198972 * A127889 A088603 A048549
KEYWORD
nonn
AUTHOR
Henry Bottomley, Nov 13 2001
EXTENSIONS
More terms from Robert G. Wilson v, Nov 28 2001
STATUS
approved