OFFSET
1,2
COMMENTS
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
Module[{nn=60, c}, c=Join[{1}, Prime[Range[PrimePi[nn]]]]; Table[Total[ Select[ c, #<=n&]], {n, nn}]] (* Harvey P. Dale, Jun 01 2014 *)
Accumulate[Join[{1}, Table[If[PrimeQ[n], n, 0], {n, 60}]]] (* Harvey P. Dale, Feb 27 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Mar 23 2009, Apr 12 2009
STATUS
approved