OFFSET
0,1
LINKS
T. D. Noe, Table of n, a(n) for n=0..100
EXAMPLE
After 3,5, one can't have composite 8, so keep adding 5 until you reach 13. After 5,13, one can't have composite 18, so keep adding 13 until you reach 31.
MATHEMATICA
nxt[{a_, b_}]:=Module[{c=a+b}, While[CompositeQ[c], c=c+b]; {b, c}]; NestList[ nxt, {2, 3}, 20][[All, 1]] (* Harvey P. Dale, Aug 01 2017 *)
PROG
(PARI) l=2; h=3; print1("2, 3, "); while(l<2^128, t=l+h; while(!isprime(t), t+=h); print1(t, ", "); l=h; h=t)
CROSSREFS
KEYWORD
nonn
AUTHOR
Phil Carmody, Aug 15 2002
STATUS
approved