OFFSET
1,1
MATHEMATICA
a={-1, 2, 2}; Print[2]; Print[2]; For[n=3, n<=1000, n++, sum=Plus@@a; If[PrimeQ[sum], Print[sum]]; a=RotateLeft[a]; a[[3]]=sum]
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Price, Nov 25 2013
EXTENSIONS
Name clarified by Arthur O'Dwyer, Jul 25 2024
STATUS
approved