OFFSET
0,2
EXAMPLE
For instance 1+2=3, 3+5=8, 8+11=19, 19+23=42, 42+43=85, ...
MATHEMATICA
Needs[ "NumberTheory`NumberTheoryFunctions`" ]; NestList[ # + NextPrime[ # ] &, 1, 50 ]
PROG
(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
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Robert G. Wilson v, Sep 09 2002
STATUS
approved