OFFSET
1,2
COMMENTS
Consider two primes P=2p+3q, Q=2q+3p with p and q twin primes, and p=6n-1, then P=Q+2, and sequence gives corresponding values of n.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[Range[10000], PrimeQ[6 # - 1] && PrimeQ[6 # + 1] && PrimeQ[30 # - 1] && PrimeQ[30 # + 1] &] (* T. D. Noe, Dec 10 2012 *)
Select[Range[8000], AllTrue[Flatten[{6#+{1, -1}, 30#+{1, -1}}], PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Aug 23 2014 *)
PROG
(PARI){for(n=1, 6000, if(isprime(p=6*n-1)&&isprime(p+2)&&isprime(q=30*n-1)&&isprime(q+2), print1(n", ")))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Dec 10 2012
STATUS
approved