cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A161463 Sum of all primes from n-th prime to (2*n-1)-th prime.

Original entry on oeis.org

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

Views

Author

Juri-Stepan Gerasimov, Jun 10 2009

Keywords

Comments

From Lekraj Beedassy, Apr 30 2010: (Start)
Sum of next n primes starting with the n-th prime.
For sum of next n primes starting with the (T(n) + 1)-th prime, or A000124(n)-th prime = A078721(n), {T(n)=A000217(n)}, see A007468(n). (End)
74 of the first 1000 terms of this sequence are primes and each occurs at an odd index. - Harvey P. Dale, Jan 12 2014

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.
		

Crossrefs

Cf. A000040 (primes), A007504 (sum of first n primes), A105720 (sum of n-th and next n primes).

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