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.

A202301 Next prime after the partial sum of the first n primes.

Original entry on oeis.org

3, 7, 11, 19, 29, 43, 59, 79, 101, 131, 163, 199, 239, 283, 331, 383, 443, 503, 569, 641, 719, 797, 877, 967, 1061, 1163, 1277, 1373, 1481, 1597, 1721, 1861, 1993, 2129, 2281, 2437, 2591, 2749, 2917, 3089, 3271, 3449, 3643, 3833, 4049, 4229, 4441, 4663, 4889
Offset: 1

Views

Author

Yalcin Aktar, Jan 11 2012

Keywords

Crossrefs

Programs

  • Maple
    A007504 := proc(n)
            add( ithprime(k),k=1..n) ;
    end proc:
    A202301 := proc(n)
            nextprime(A007504(n)) ;
    end proc:
    seq(A202301(n),n=1..20) ; # R. J. Mathar, Jan 29 2012
  • Mathematica
    s = 0; Table[s = s + Prime[n]; NextPrime[s], {n, 100}] (* T. D. Noe, Apr 10 2012 *)
    NextPrime[#]&/@Accumulate[Prime[Range[50]]] (* Harvey P. Dale, Feb 01 2015 *)

Formula

a(n) = A151800(A007504(n)). - R. J. Mathar, Jan 29 2012 [corrected by Georg Fischer, Dec 19 2020]