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.

A071148 Partial sums of sequence of odd primes (A065091); a(n) = sum of the first n odd primes.

Original entry on oeis.org

3, 8, 15, 26, 39, 56, 75, 98, 127, 158, 195, 236, 279, 326, 379, 438, 499, 566, 637, 710, 789, 872, 961, 1058, 1159, 1262, 1369, 1478, 1591, 1718, 1849, 1986, 2125, 2274, 2425, 2582, 2745, 2912, 3085, 3264, 3445, 3636, 3829, 4026, 4225, 4436, 4659, 4886
Offset: 1

Views

Author

Labos Elemer, May 13 2002

Keywords

Crossrefs

Programs

  • Maple
    ListTools:-PartialSums(select(isprime, [seq(i,i=3..1000,2)])); # Robert Israel, Feb 12 2017
  • Mathematica
    Accumulate@ Prime@ Range[2, 49] (* Michael De Vlieger, Feb 12 2017 *)
  • PARI
    a(n) = sum(k=1, n+1, prime(k)) - 2; \\ Michel Marcus, Feb 12 2017

Formula

a(n) = A007504(n+1) - 2.