OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(1)=2+0=2. a(2)=5+1=6. a(3)=10+5=15. a(4)=17+11=28. a(5)=28+19=47. a(6)=41+28=69. a(7)=58+38=96.
MATHEMATICA
Module[{nn=80, np, len}, np=Select[Range[0, nn], !PrimeQ[#]&]; len=Length[np]; Total/@ Thread[{Accumulate[np], Accumulate[Prime[Range[len]]]}]] (* Harvey P. Dale, Jun 14 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Jul 21 2009
EXTENSIONS
Formula index corrected, 1119 replaced by 1159 - R. J. Mathar, Jul 27 2009
STATUS
approved