OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MAPLE
A075574:=proc(n) local i, j, k, t, s; j:=1; s:=1; t:=1; for i to n do k:=s; s:=nextprime(s+j); j:=s-k; t:=t, j; od; t; end; # Floor van Lamoen, Oct 21 2005
MATHEMATICA
nxt[{ps_, a_}]:=Module[{c=a+2}, While[!PrimeQ[ps+c], c+=2]; {ps+c, c}]; Join[ {1}, NestList[nxt, {3, 2}, 60][[All, 2]]] (* Harvey P. Dale, Sep 19 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Sep 25 2002
EXTENSIONS
More terms from David Wasserman, Jan 20 2005
STATUS
approved