OFFSET
2,1
COMMENTS
PROG
(Python)
from sympy import isprime, prime, primerange
def aupton(terms):
phash, alst = 2, []
for p in primerange(3, prime(terms)+1):
phash *= p
for k in range(1, phash//2):
if isprime(phash-k) and isprime(phash+k): alst.append(phash+k); break
return alst
print(aupton(18)) # Michael S. Branicky, May 29 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, May 21 2004
EXTENSIONS
Corrected by T. D. Noe, Nov 15 2006
More terms from Herman Jamke (hermanjamke(AT)fastmail.fm), May 01 2008
STATUS
approved