OFFSET
1,1
MATHEMATICA
Intersection[Select[Range[100000], PrimeQ[ # ]&&PrimeQ[2#+33]&&PrimeQ[2#-33]&&PrimeQ[ # ]&&PrimeQ[2#+27]&&PrimeQ[2#-27]&]]
okQ[n_]:=Module[{x=2n}, And@@PrimeQ[{x-27, x+27, x-33, x+33}]]; Select[Prime[Range[7000]], okQ] (* Harvey P. Dale, Jan 23 2011 *)
PROG
(Magma) [ p: p in PrimesUpTo(61000) | IsPrime(2*p-27) and IsPrime(2*p+27) and IsPrime(2*p-33) and IsPrime(2*p+33) ];
(PARI) {forprime(p=2, 61000, if(isprime(abs(2*p-27))&&isprime(2*p+27)&&isprime(abs(2*p-33))&&isprime(2*p+33), print1(p, ", ")))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Feb 16 2005
EXTENSIONS
Definition clarified, comment adjusted, MAGMA and PARI programs added by Klaus Brockhaus, Mar 21 2010
STATUS
approved