login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A046285
Numbers k such that the sum of the first k primes is a lucky number.
2
10, 20, 34, 36, 46, 52, 56, 68, 72, 86, 88, 90, 96, 100, 102, 118, 130, 140, 144, 154, 166, 198, 228, 240, 242, 282, 318, 328, 348, 356, 360, 366, 392, 402, 418, 440, 452, 464, 472, 476, 510, 540, 556, 570, 572, 586, 592, 600, 604, 614, 638, 650, 654, 670, 684
OFFSET
1,1
LINKS
MATHEMATICA
lst = Range[1, 1700000, 2]; i = 2; While[ i <= (len = Length@lst) && (k = lst[[i]]) <= len, lst = Drop[lst, {k, len, k}]; i++ ]; lst2 = {}; s = 0; Do[s = s + Prime@n; If[MemberQ[lst, s], Print[n]; AppendTo[lst2, n]], {n, 687}]; lst2 (* Robert G. Wilson v *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Patrick De Geest, Jun 15 1998
EXTENSIONS
More terms from Robert G. Wilson v, May 12 2006
STATUS
approved