OFFSET
1,1
COMMENTS
Has many terms in common with A036061, but neither of the two is a subsequence of the other one. - M. F. Hasler, May 07 2022
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..41
PROG
(Python)
from sympy import nextprime
from itertools import count, islice
def agen(): # generator of terms
p, q, n, rl, argp = 2, 3, 1, 0, 2
for k in count(1):
if q - p >= 4: rl += 1
else:
if rl >= n: yield argp; n = rl + 1
rl, argp = 0, q
p, q = q, nextprime(q)
print(list(islice(agen(), 14))) # Michael S. Branicky, Aug 23 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Jeff Burch, Apr 19 2000
EXTENSIONS
a(10)-a(25) from Sean A. Irvine, Feb 17 2022
Offset changed and a(26)-a(29) from Michael S. Branicky, Aug 23 2022
STATUS
approved