OFFSET
1,1
COMMENTS
See A070218: a(1)=2;a(n)=smallest prime greater than the sum of all previous terms.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
s={2}; ss=2; Do[a=If[PrimeQ[ss], ss, Prime[PrimePi[ss]+1]]; AppendTo[s, a]; AddTo[ss, a], {i, 35}]; A112527=s
Module[{ll={2}}, Do[AppendTo[ll, NextPrime[Total[ll]-1]], {40}]; ll] (* Harvey P. Dale, May 07 2012 *)
nxt[{t_, a_}]:= Module[{c=NextPrime[t-1]}, {t+c, c}]; Rest[NestList[nxt, {0, 2}, 40][[All, 2]]] (* Harvey P. Dale, Nov 22 2019 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Zak Seidov, Sep 10 2005
STATUS
approved