OFFSET
0,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
FORMULA
a(n+1)=nextprime(a(n)+a(n-1))
EXAMPLE
After 1,1, the next prime >2 is 3.
MATHEMATICA
nxt[{a_, b_}]:={b, NextPrime[a+b]}; NestList[nxt, {1, 1}, 40][[All, 1]] (* Harvey P. Dale, Apr 14 2022 *)
PROG
(PARI) l=1; h=1; print1("1, 1, "); while(l<2^32, t=l+h+1; while(!isprime(t), t+=1); print1(t, ", "); l=h; h=t)
CROSSREFS
KEYWORD
nonn
AUTHOR
Phil Carmody, Aug 15 2002
STATUS
approved