OFFSET
1,2
COMMENTS
a(17) > 2*10^5.
LINKS
Tony D. Noe and Jonathan Vos Post, Primes in Fibonacci n-step and Lucas n-step Sequences, J. of Integer Sequences, Vol. 8 (2005), Article 05.4.4
MATHEMATICA
a={1, 2, 2}; Print[2]; Print[2]; For[n=3, n<=1000, n++, sum=Plus@@a; If[PrimeQ[sum], Print[n]]; a=RotateLeft[a]; a[[3]]=sum]
Position[LinearRecurrence[{1, 1, 1}, {1, 2, 2}, 75000], _?PrimeQ]-1//Flatten (* Harvey P. Dale, Sep 02 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Price, Dec 29 2013
STATUS
approved