OFFSET
0,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 0..24
FORMULA
a(n) = A035095(10^n).
EXAMPLE
a(0) = 3 because p = prime(1) = 2, 3 = 1+p.
a(1) = 59 because p = prime(10) = 29, 59 = 1+2*p.
a(2) = 9739 because p = prime(10) = 29, 59 = 1+18*p.
MATHEMATICA
a[n_]:=(If[n<2, 3, p=Prime[n]; r=2p+1; While[!PrimeQ[r], r=r+2p]; r]); Table[a[10^n], {n, 0, 12}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Aug 17 2012
EXTENSIONS
a(13)-a(18) from Amiram Eldar, Apr 30 2024
STATUS
approved