OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..1000 from T. D. Noe)
Eric Weisstein's World of Mathematics, Prime Triplet.
FORMULA
a(n) == 17 (mod 30). - Amiram Eldar, Feb 21 2025
EXAMPLE
227 is in the sequence since 227, 229 = 227 + 2, 233 = 227 + 6, 239 = 227 + 12 and 241 = 227 + 14 are consecutive primes.
MATHEMATICA
Rest@ Select[Prime@ Range@ 36000, AllTrue[{2, 6, 12, 14} + #, PrimeQ] &] (* Michael De Vlieger, Apr 18 2015, Version 10 *)
Select[Partition[Prime[Range[36000]], 5, 1], Differences[#]=={2, 4, 6, 2}&][[All, 1]] (* Harvey P. Dale, Jun 14 2022 *)
PROG
(PARI) isok(p) = isprime(p) && (nextprime(p+1)==p+2) && (nextprime(p+3)== p+6) && (nextprime(p+7)==p+12) && (nextprime(p+13)==p+14); \\ Michel Marcus, Dec 10 2013
(PARI) list(lim) = {my(p1 = 2, p2 = 3, p3 = 5, p4 = 7); forprime(p5 = 11, lim, if(p2 - p1 == 2 && p3 - p2 == 4 && p4 - p3 == 6 && p5 - p4 == 2, print1(p1, ", ")); p1 = p2; p2 = p3; p3 = p4; p4 = p5); } \\ Amiram Eldar, Feb 21 2025
(Magma) [p: p in PrimesInInterval(7, 1000000) | forall{i: i in [2, 6, 12, 14] | IsPrime(p+i)}]; // Vincenzo Librandi, Apr 19 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Dec 19 2002
EXTENSIONS
Edited by Dean Hickerson, Dec 20 2002
STATUS
approved