OFFSET
0,2
COMMENTS
Same as A070865 after first term. - David Wasserman, Jun 27 2005
EXAMPLE
a(6) = 59 since 59 = a(5) + c(6) = 41 + 18, 18 is composite and larger than c(5) = 12 and the composite numbers 14, 15, 16 do not lead to a prime when added to 41.
MATHEMATICA
a[n_] := a[n] = NextPrim[a[n - 1] + a[n - 1] - a[n - 2]]; a[0] = 1; a[1] = 5; Table[ a[n], {n, 0, 50}]
PROG
(PARI) {print1(a=1, ", "); c=1; for(n=1, 48, c++; while(isprime(c)||!isprime(a+c), c++); a=a+c; print1(a, ", "))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Aug 14 2002
EXTENSIONS
Edited and extended by Klaus Brockhaus and Robert G. Wilson v, Aug 14 2002
STATUS
approved