OFFSET
1,1
COMMENTS
Equivalently, primes p such that p, p+4, p+10, p+12 and p+16 are consecutive primes.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..500 from R. J. Mathar)
FORMULA
a(n) == 7 (mod 30). - Amiram Eldar, Feb 21 2025
EXAMPLE
90007 is in the sequence since 90007, 90011 = 90007 + 4, 90017 = 90007 + 10, 90019 = 90007 + 12 and 90023 = 90007 + 16 are consecutive primes.
MATHEMATICA
Transpose[Select[Partition[Prime[Range[85000]], 5, 1], Differences[#] == {4, 6, 2, 4}&]][[1]] (* Harvey P. Dale, Sep 30 2012 *)
PROG
(PARI) list(lim) = {my(p1 = 2, p2 = 3, p3 = 5, p4 = 7); forprime(p5 = 11, lim, if(p2 - p1 == 4 && p3 - p2 == 6 && p4 - p3 == 2 && p5 - p4 == 4, print1(p1, ", ")); p1 = p2; p2 = p3; p3 = p4; p4 = p5); } \\ Amiram Eldar, Feb 21 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Dec 19 2002
EXTENSIONS
Edited by Dean Hickerson, Dec 20 2002
STATUS
approved