OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
2+503=505=5*101, 503+709=1212=12*101, 709+907=1616=16*101.
MATHEMATICA
k=101; a=p=2; s={2}; Do[p=NextPrime[p]; If[Mod[a+p, k]==0, a=p; AppendTo[s, a]], {10000}]; s
sp[n_]:=Module[{p=NextPrime[n]}, While[Mod[n+p, 101]!=0, p=NextPrime[p]]; p]; NestList[sp, 2, 40] (* Harvey P. Dale, Sep 25 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, May 28 2010
STATUS
approved