OFFSET
1,1
PROG
(Python)
from sympy.ntheory.factor_ import primeomega, isprime
def issemiprime(n): return primeomega(n) == 2
def ok(n): return issemiprime(n) and (issemiprime(n+4) or isprime(n+4))
print(list(filter(ok, range(1, 288)))) # Michael S. Branicky, Apr 14 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Aug 01 2010
EXTENSIONS
Corrected (86 replaced by 85) by R. J. Mathar, Aug 03 2010
STATUS
approved