OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..100
MATHEMATICA
ppp[{p_, a_}]:=Module[{n=a+2}, While[!PrimeQ[p*n+1], n=n+2]; {p*n, n}]; NestList[ ppp, {2, 2}, 60][[All, 2]] (* Harvey P. Dale, Aug 12 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy and Meenakshi Srikanth (menakan_s(AT)yahoo.com), Jun 13 2003
EXTENSIONS
More terms from David Wasserman, Jan 03 2005
STATUS
approved