OFFSET
1,1
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000 (first 383 terms from Robert Price)
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
FORMULA
2 and the primes in A127208.
MATHEMATICA
plst={2}; plimit=10^39; For[n=2, n<=3+Log[2, plimit], n++, llst={}; For[i=1, i<n, i++, AppendTo[llst, -1]]; AppendTo[llst, n]; For[k=2, k<=2*(1+Log[GoldenRatio, plimit*Sqrt[5]+0.5]), k++, sum=Sum[llst[[j+k-2]], {j, 1, n}]; AppendTo[llst, sum]; If[sum<=plimit && PrimeQ[sum], AppendTo[plst, sum]]]]; Union[plst]
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Price, Oct 25 2013
STATUS
approved