OFFSET
1,1
COMMENTS
Some terms can be obtained in more than one way.
For example 47 =37+41-31 = 41+43-37.
The formula in the definition adds a previous prime gap prime(k+1)-prime(k) to the prime(k+2); the gap is basically >=2, so there is a minimal growth which yields safe bounds to algorithms.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
13 = 7+11-5, 17=11+13-7
PROG
(PARI) list(lim)=my(v=List(), t, p=2, q=3); forprime(r=5, lim-2, t=q+r-p; if(isprime(t) && t<=lim, listput(v, t)); p=q; q=r); Set(v) \\ Charles R Greathouse IV, Feb 23 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Claudio Meller, Dec 05 2010
STATUS
approved