|
|
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
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
|
|
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)
|
|
CROSSREFS
|
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|