OFFSET
1,1
COMMENTS
Are all terms <=6?
This is A067970 without its first term. [From R. J. Mathar, Aug 17 2009]
Yes, all terms are at most 6. For a value of 8, we have to have p, p+2, p+4 all prime, and this is possible only for p=3. As a result, 1 would have to be an odd composite number, which it is not. Therefore all terms are <=6. [From J. Lowell, Aug 17 2009]
PROG
(Python)
from sympy import primepi, isprime
def A164510(n):
m, k = n, primepi(n+1) + n + (n+1>>1)
while m != k:
m, k = k, primepi(k) + n + (k>>1)
for d in range(2, 7, 2):
if not isprime(m+d):
return d # Chai Wah Wu, Aug 02 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Aug 14 2009
STATUS
approved