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.
%I A074839 #7 Mar 19 2024 13:43:56 %S A074839 1,3,8,19,42,85,174,353,712,1431,2864,5743,11492,22989,45982,91971, %T A074839 183968,367939,735888,1471789,2943596,5887195,11774408,23548837, %U A074839 47097690,94195387,188390808,376781617,753563240,1507126509,3014253028 %N A074839 a(0) = 1, a(n+1) = a(n) + next prime larger than a(n). %e A074839 For instance 1+2=3, 3+5=8, 8+11=19, 19+23=42, 42+43=85, ... %t A074839 Needs[ "NumberTheory`NumberTheoryFunctions`" ]; NestList[ # + NextPrime[ # ] &, 1, 50 ] %o A074839 (Python) %o A074839 from itertools import islice %o A074839 from sympy import nextprime %o A074839 def A074839_gen(): # generator of terms %o A074839 yield (a:=1) %o A074839 while (a:=a+nextprime(a)): yield a %o A074839 A074839_list = list(islice(A074839_gen(),20)) # _Chai Wah Wu_, Mar 19 2024 %Y A074839 Cf. A063807. %K A074839 easy,nonn %O A074839 0,2 %A A074839 _Robert G. Wilson v_, Sep 09 2002