OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = Sum_{k=n..prime(n)} k.
EXAMPLE
First prime is 2, so a(1) = 1+2 = 3; fifth prime is 11, so a(5) = 5+6+7+8+9+10+11 = 56.
MATHEMATICA
snos[n_]:=Module[{pr=Prime[n]}, ((pr+n)(pr-n+1))/2]; Array[snos, 50] (* Harvey P. Dale, Jun 05 2012 *)
PROG
(Magma) [ &+[n..NthPrime(n)]: n in [1..44] ]; // Klaus Brockhaus, Jun 14 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Jun 15 2009
EXTENSIONS
Edited and extended by Klaus Brockhaus, Jun 15 2009
STATUS
approved