OFFSET
1,1
COMMENTS
There are no further terms in this sequence because for all n >= 466 (Sum_{k=1..n} k!) - 2 is divisible by 467. [From Dmitry Kamenetsky, Feb 10 2009]
EXAMPLE
1! + 2! + 3! + 4! + 5! -2 = 1 + 2 + 6 + 24 + 120 - 2 = 151 which is a prime.
MATHEMATICA
Do[If[PrimeQ[Sum[m!, {m, 1, n}]-2], Print[n]], {n, 1, 2500}]
Flatten[Position[Accumulate[Range[500]!]-2, _?PrimeQ]] (* Harvey P. Dale, Nov 15 2014 *)
CROSSREFS
KEYWORD
nonn,fini,full
AUTHOR
Robert G. Wilson v, Jul 05 2000
STATUS
approved