OFFSET
1,2
LINKS
Michel Marcus, Table of n, a(n) for n = 1..1000
FORMULA
MATHEMATICA
Table[Total[Take[Table[Prime[n]-n, {n, 1, 20}], i]], {i, 20}]
With[{nn=50}, Accumulate[Prime[Range[nn]]]-Accumulate[Range[nn]]] (* Harvey P. Dale, Aug 31 2023 *)
PROG
(PARI) a(n) = sum(i=1, n, prime(i)-i); \\ Michel Marcus, Oct 09 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Jan 03 2006
EXTENSIONS
More terms from Michel Marcus, Oct 09 2013
STATUS
approved