OFFSET
0,1
LINKS
Pierre CAMI, Table of n, a(n) for n = 0..1000
EXAMPLE
a(3)=13 because 13 is the smallest prime p such that p+10^3 (=1013) is also prime: For the primes < 13, 1002=2*3*167, 1003=17*59, 1005=3*5*67, 1007=19*53 and 1011=3*337, respectively, are not prime.
MATHEMATICA
s={}; Do[p=0; Until[PrimeQ[Prime[p]+10^n], p++]; AppendTo[s, Prime[p]], {n, 0, 63}]; s (* James C. McMahon, Dec 29 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Rick L. Shepherd, Jan 01 2007
STATUS
approved