OFFSET
1,1
COMMENTS
Sequence A013918 lists the nonzero numbers occurring at even n.
EXAMPLE
a(60) = 7699 because Sum_{k=1..60} prime(k) = 7699 and 7699 is the smallest possible prime formed by summing 60 consecutive primes. - Sean A. Irvine, Jun 07 2024
MATHEMATICA
f[n_] := Block[{k = 1, s}, If[Mod[n, 2] == 0, s = Sum[Prime[i], {i, k, k + n - 1}]; If[PrimeQ[s], s, 0], While[s = Sum[Prime[i], {i, k, k + n - 1}] ; ! PrimeQ[s], k++ ]; s]]; Table[f[n], {n, 65}] (* Ray Chandler, Sep 27 2006 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, May 07 2002
EXTENSIONS
Corrected and extended by Jim Nastos, Jun 15 2002
Extended by Ray Chandler, Sep 27 2006
a(60) corrected by Giovanni Resta, May 31 2017
Original a(60) restored by Sean A. Irvine, Jun 07 2024
STATUS
approved