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
KEYWORD
nonn
AUTHOR
J. M. Bergot, Apr 25 2007
EXTENSIONS
Edited and extended by Robert G. Wilson v, Apr 28 2007
STATUS
approved