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.

A074839 a(0) = 1, a(n+1) = a(n) + next prime larger than a(n).

Original entry on oeis.org

1, 3, 8, 19, 42, 85, 174, 353, 712, 1431, 2864, 5743, 11492, 22989, 45982, 91971, 183968, 367939, 735888, 1471789, 2943596, 5887195, 11774408, 23548837, 47097690, 94195387, 188390808, 376781617, 753563240, 1507126509, 3014253028
Offset: 0

Views

Author

Robert G. Wilson v, Sep 09 2002

Keywords

Examples

			For instance 1+2=3, 3+5=8, 8+11=19, 19+23=42, 42+43=85, ...
		

Crossrefs

Cf. A063807.

Programs

  • Mathematica
    Needs[ "NumberTheory`NumberTheoryFunctions`" ]; NestList[ # + NextPrime[ # ] &, 1, 50 ]
  • Python
    from itertools import islice
    from sympy import nextprime
    def A074839_gen(): # generator of terms
        yield (a:=1)
        while (a:=a+nextprime(a)): yield a
    A074839_list = list(islice(A074839_gen(),20)) # Chai Wah Wu, Mar 19 2024