login
A144842
Numbers k such that the three numbers k+3, k-3 and k+5 are all prime.
2
8, 14, 26, 56, 104, 134, 176, 194, 236, 266, 566, 596, 656, 824, 1016, 1226, 1286, 1484, 1604, 1616, 1874, 2084, 2336, 2546, 2966, 3254, 3326, 3464, 3536, 3764, 3914, 3926, 4016, 4214, 4256, 4646, 4796, 5006, 5276, 5474, 5654, 5846, 5864, 6266, 6356, 6566
OFFSET
1,1
COMMENTS
Subset of A087695. - R. J. Mathar, Sep 24 2008
LINKS
Eric Weisstein's World of Mathematics, Prime Triplet.
FORMULA
a(n) = A046138(n) + 3. - R. J. Mathar, Sep 24 2008
MATHEMATICA
Select[Range[7000], And @@ PrimeQ[# + {-3, 3, 5}] &] (* Amiram Eldar, Apr 14 2022 *)
PROG
(Python)
from sympy import isprime
def ok(n): return n > 4 and isprime(n-3) and isprime(n+3) and isprime(n+5)
print(list(filter(ok, range(6567)))) # Michael S. Branicky, Aug 14 2021
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Giovanni Teofilatto, Sep 22 2008
EXTENSIONS
Definition edited and extended by R. J. Mathar, Sep 24 2008
STATUS
approved