

A128927


Primes which are the sum of the first k nonprimes for some k >= 2.


1



5, 11, 19, 79, 113, 251, 401, 709, 947, 1579, 1847, 2063, 5077, 7603, 9049, 10457, 11621, 17509, 18353, 19433, 21911, 22853, 24551, 27073, 30809, 33923, 34213, 37781, 39313, 39623, 45757, 46091, 47779, 51241, 53381, 56299, 58537, 67927
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,1


COMMENTS

The k's are: 2, 3, 4, 9, 11, 17, 22, 30, 35, 46, 50, 53, 85, 105, 115, 124, ..., .  Robert G. Wilson v, Apr 28 2007


LINKS

Harvey P. Dale, Table of n, a(n) for n = 1..1000


EXAMPLE

1+4+6+8+9+10+12+14+15+16+18=113, a prime. The subtotals were taken up to and including 4,6,8,18,26,33,44,50,64,69,74,115,138,150.


MATHEMATICA

lst = {}; s = 0; Do[ If[ !PrimeQ@ n, s = s + n; If[ PrimeQ@ s, AppendTo[lst, s]]], {n, 460}]; lst (* Robert G. Wilson v *)
Select[Accumulate[Select[Range[600], !PrimeQ[#]&]], PrimeQ] (* Harvey P. Dale, Oct 11 2020 *)


CROSSREFS

Cf. A018252.
Sequence in context: A267603 A323007 A297365 * A145934 A033913 A088124
Adjacent sequences: A128924 A128925 A128926 * A128928 A128929 A128930


KEYWORD

nonn


AUTHOR

J. M. Bergot, Apr 25 2007


EXTENSIONS

Edited and extended by Robert G. Wilson v, Apr 28 2007


STATUS

approved



