login
A153866
Largest of four consecutive Fibonacci numbers whose sum is a prime number.
7
3, 5, 13, 21, 89, 233, 987, 1597, 4181, 1346269, 24157817, 165580141, 2971215073, 53316291173, 2504730781961, 308061521170129, 14472334024676221, 184551825793033096366333
OFFSET
1,1
COMMENTS
1+1+2+3=7, 1+2+3+5=11, 3+5+8+13=29, 5+8+13+21=47, 21+34+55+89=199, ...
MATHEMATICA
a=0; b=1; c=1; lst={}; Do[d=Fibonacci[n]; p=a+b+c+d; If[PrimeQ[p], AppendTo[lst, d]]; a=b; b=c; c=d, {n, 3, 6!}]; lst
Alternate: Transpose[Select[Partition[Fibonacci[Range[200]], 4, 1], PrimeQ[Plus@@#]&]][[4]] (* Harvey P. Dale, Dec 05 2010 *)
KEYWORD
nonn
AUTHOR
STATUS
approved