OFFSET
1,1
REFERENCES
J.-P. Delahaye, Des suites fractales d’entiers, Pour la Science, No. 531 January 2022. Sequence c) p. 82.
PROG
(Python)
from sympy import nextprime
from itertools import islice
def primes(p=2):
while True: yield p; p = nextprime(p)
def agen():
seq1, seq2 = primes(), primes()
while True:
p, q = next(seq1), next(seq2)
yield p
for i in range(q):
p = next(seq1)
print(list(islice(agen(), 43))) # Michael S. Branicky, Dec 18 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Marcus, Dec 18 2021
STATUS
approved