OFFSET
1,1
EXAMPLE
a(3) = 7 + 11 + 13 + 17 + 19 = 67 since p_3 = 5 and the sum of the next 5 prime numbers after 5 is 67.
MATHEMATICA
list = {}; For[x = 1, x < 100 (*change this value to get more terms*), x++, AppendTo[list, Sum[Prime[n], {n, x + 1, x + Prime[x]}]]]; list
f[n_]:=Module[{pn=Prime[n]}, Total[Prime[Range[n+1, n+pn]]]]; f/@Range[50] (* Harvey P. Dale, Mar 12 2011 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Matthew Howells (mathmatt(AT)gmail.com), Nov 16 2004
STATUS
approved