OFFSET
1,1
COMMENTS
Start with s={3,5,7}. Then a(n) is the least prime > a(n-1) such that no three terms sum up to a prime number.
LINKS
Zak Seidov, Table of n, a(n) for n = 1..104
MATHEMATICA
s = {3, 5, 7}; bs = {8, 10, 12}; p = 7; Do[Label[np]; p = NextPrime[p];
Do[If[PrimeQ[p + bs[[k]]], Goto[np]], {k, Length[bs]}]; AppendTo[s, p]; bs = Join[bs, s + p]; Print[p], {100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Feb 10 2015
STATUS
approved