login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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
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
Sequence in context: A029631 A187062 A153340 * A273843 A227867 A254034
KEYWORD
easy,nonn
AUTHOR
Giovanni Teofilatto, Sep 22 2008
EXTENSIONS
Definition edited and extended by R. J. Mathar, Sep 24 2008
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 16 21:21 EDT 2024. Contains 375191 sequences. (Running on oeis4.)