login
A065533
a(n) is smallest prime > 10*a(n-1), a(1) = 3.
1
3, 31, 311, 3119, 31193, 311951, 3119533, 31195343, 311953441, 3119534441, 31195344413, 311953444133, 3119534441393, 31195344413953, 311953444139539, 3119534441395579, 31195344413955853, 311953444139558593
OFFSET
1,1
LINKS
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 *)
PROG
(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
CROSSREFS
Cf. A065122.
Sequence in context: A037666 A065837 A100894 * A048550 A236527 A108430
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Nov 28 2001
STATUS
approved