OFFSET
1,1
COMMENTS
The members of the "quartet" need not be consecutive primes. - Harvey P. Dale, Oct 21 2017
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
The quartets are: (11, 13, 29, 31), if k=21; (179, 181, 197, 199), if k=189; (599, 601, 617, 619), if k=609; etc.
MAPLE
Q:= proc(k) if isprime(k-10) and isprime(k-8) and isprime(k+8) and isprime(k+10) then (k-10, k-8, k+8, k+10) fi end proc:
map(Q, [seq(k, k=13 .. 10000, 2)]); # Robert Israel, Jun 13 2017
MATHEMATICA
#+{0, 2, 18, 20}&/@Select[Prime[Range[500]], AllTrue[#+{2, 18, 20}, PrimeQ]&]//Flatten (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Oct 21 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Jul 03 2008
EXTENSIONS
Corrected (quartets with 41, 1031, 1301, 1931, 2711 etc. added) by R. J. Mathar, Apr 25 2010
STATUS
approved
