OFFSET
1,2
COMMENTS
Essentially the same as A072999. [R. J. Mathar, Feb 01 2010]
a(397) has 1003 digits. - Michael S. Branicky, Dec 21 2023
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..396
PROG
(Python)
from gmpy2 import is_prime
from itertools import count, islice
def agen(): # generator of terms
c, b = 1, 2
yield from [c, b]
for n in count(3):
a = next(c + b*i for i in count(1) if is_prime(c+b*i))
c, b = b, a
yield a
print(list(islice(agen(), 24))) # Michael S. Branicky, Dec 21 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Jan 31 2010
EXTENSIONS
Name corrected and a(16) and beyond from Michael S. Branicky, Dec 21 2023
STATUS
approved