OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
29 is a term since it is a prime and (12*29 - 1, 12*29 + 1) = (347, 349) and (18*29 - 1, 18*29 + 1) = (521, 523) are twin primes.
1051 is a term since it is a prime and (12*1051 - 1, 12*1051+ 1) = (12611, 12613) and (18*1051 - 1, 18*1051 + 1) = (18917, 18919) are twin primes.
MATHEMATICA
a=12; b=18; Select[Prime[Range[14^4]], PrimeQ[a*#-1]&&PrimeQ[a*#+1]&&PrimeQ[b*#-1]&&PrimeQ[b*#+1]&]
PROG
(Magma) [p: p in PrimesUpTo(1000)| IsPrime(12*p-1) and IsPrime(12*p+1) and IsPrime(18*p-1) and IsPrime(18*p+1)] // Vincenzo Librandi, Nov 24 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, May 15 2008
EXTENSIONS
More terms from Vincenzo Librandi, Apr 01 2010
STATUS
approved