OFFSET
1,1
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
PROG
(Python)
from itertools import islice
from sympy import isprime, nextprime
def agen(): # generator of terms
m, p, q, r = 1, 2, 3, 5
while True:
t = m*p + (m+1)*q + (m+2)*r
if isprime(t): yield t
m, p, q, r = m+1, q, r, nextprime(r)
print(list(islice(agen(), 33))) # Michael S. Branicky, May 17 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Feb 05 2016
EXTENSIONS
Typo in a(28) fixed by Seth A. Troisi, May 17 2022
a(29) and beyond from Michael S. Branicky, May 17 2022
STATUS
approved