OFFSET
1,3
EXAMPLE
a(29) = 12 and not 8 though 29+8 =37 is also a prime.
a(124) = 103 as 103 is the least three digit number such that 124 +103 = 227 is prime.
MATHEMATICA
lnzn[n_]:=Module[{k=10^(IntegerLength[n]-1)}, While[!PrimeQ[n+k], k++]; k]; Array[lnzn, 80] (* Harvey P. Dale, Jun 17 2012 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Dec 21 2003
EXTENSIONS
More terms from David Wasserman, Feb 15 2006
STATUS
approved