A161463 Sum of all primes from n-th prime to (2*n-1)-th prime.
2, 8, 23, 48, 83, 132, 197, 270, 363, 468, 583, 714, 863, 1026, 1199, 1392, 1607, 1836, 2083, 2346, 2627, 2926, 3237, 3564, 3925, 4290, 4669, 5074, 5499, 5938, 6389, 6862, 7355, 7866, 8411, 8964, 9539, 10134, 10743, 11374, 12029, 12702, 13393, 14094
Offset: 1
Keywords
Examples
Sum of 3rd prime to 5th prime = 5+7+11, hence a(3) = 23; sum of 4th prime to 7th prime = 7+11+13+17, hence a(4) = 48.
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
Crossrefs
Programs
-
Magma
[ &+[ NthPrime(k): k in [n..2*n-1] ]: n in [1..44] ]; // Klaus Brockhaus, Jun 12 2009
-
Mathematica
nn=100;With[{prs=Prime[Range[nn]]},Table[Total[Take[prs,{n,2n-1}]],{n, Floor[(nn+1)/2]}]] (* Harvey P. Dale, Jan 12 2014 *)
Extensions
Edited, corrected and extended by Klaus Brockhaus, Jun 12 2009
Comments