OFFSET
1,1
COMMENTS
It is not known if this sequence is infinite.
LINKS
Sequence inspired by (but not mentioned in) talk by Terence Tao, February 23 2023, in the Number Theory Web Seminar.
PROG
(Python)
from math import gcd
from itertools import count, islice
from sympy import isprime, nextprime
def agen(): # generator of terms
alst = [5]
while True:
yield alst[-1]
p = nextprime(alst[-1])
while any(not isprime(ai + p - 1) for ai in alst):
p = nextprime(p)
alst.append(p)
print(list(islice(agen(), 9))) # Michael S. Branicky, Feb 23 2023
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Jeffrey Shallit, Feb 23 2023
EXTENSIONS
a(10)-a(12) from Michael S. Branicky, Feb 23 2023
a(13) from Rémy Sigrist, Feb 24 2023
a(14)-a(16) from Bert Dobbelaere, Mar 05 2023
STATUS
approved