OFFSET
1,1
REFERENCES
J.-P. Delahaye, Des suites fractales d’entiers, Pour la Science, No. 531 January 2022. Sequence e) p. 82.
MATHEMATICA
nxt[{p_, t_}]:=Module[{n=NextPrime[p]}, {n, PadRight[{}, n, t+n]}]; Join[{2}, NestList[nxt, {2, 2}, 10][[;; , 2]]]//Flatten (* Harvey P. Dale, Jun 05 2023 *)
PROG
(Python)
from sympy import nextprime
from itertools import islice, repeat
def primes(p=2):
while True: yield p; p = nextprime(p)
def agen():
primesum = 0
for p in primes():
primesum += p
yield from repeat(primesum, p)
print(list(islice(agen(), 66))) # Michael S. Branicky, Dec 18 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Marcus, Dec 18 2021
EXTENSIONS
a(19) and beyond from Michael S. Branicky, Dec 18 2021
STATUS
approved