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”).

A323360
Least number of consecutive primes beginning with 2, the sum of which (A007504) is >= 2^n.
2
1, 1, 2, 3, 4, 6, 8, 10, 14, 19, 25, 34, 46, 62, 84, 115, 158, 216, 296, 406, 559, 770, 1063, 1468, 2029, 2808, 3889, 5390, 7478, 10381, 14421, 20044, 27876, 38792, 54010, 75233, 104842, 146169, 203869, 284457, 397045, 554382, 774322, 1081859
OFFSET
0,3
COMMENTS
The final primes in the sums are 2, 2, 3, 5, 7, 13, 19, 29, 43, 67, 97, 139, 199, 293, 433, 631, 929, ..., .
MATHEMATICA
p = 2; k = s = 0; lst = {}; Do[ While[s < 2^n, s = s + p; p = NextPrime@ p; k++]; AppendTo[lst, k], {n, 50}]; lst
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Jan 12 2019
STATUS
approved