OFFSET
1,1
COMMENTS
Previous name was: a(2n-1) is the first unused prime which is the sum of the two preceding terms and such that a(2n) is that sum and it is also an unused prime.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) does not equal 7 since 3+5+7 which is 15 is not a prime, but the next prime, 11, meets the criteria.
MATHEMATICA
s = {3, 5}; k = 1; While[k < 31, p = s[[-2]] + s[[-1]]; q = 7; While[ !PrimeQ[p + q] || MemberQ[s, q] || MemberQ[s, p + q], q = NextPrime@ q]; AppendTo[s, q]; AppendTo[s, p + q]; k++]; s
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Robert G. Wilson v, Dec 21 2012
EXTENSIONS
Name changed by Bill McEachen, Mar 13 2026
STATUS
approved
