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.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rick L. Shepherd, Jan 01 2007
STATUS
approved