OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
3 is a term since 6*3 - 1 = 17 and 6*3 + 1 = 19 are twin primes.
5 is a term since 6*5 - 1 = 29 and 6*5 + 1 = 31 are twin primes.
17 is a term since 6*17 - 1 = 101 and 6*17 + 1 = 103 are twin primes.
MATHEMATICA
lst={}; Do[p0=Prime[n]; p1=Prime[n+1]; If[p1-p0==2&&PrimeQ[p2=p0*6+1]&&PrimeQ[p2-2], AppendTo[lst, p0]], {n, 8!}]; lst
Select[Transpose[Select[Partition[Prime[Range[11000]], 2, 1], #[[2]]-#[[1]]==2&]][[1]], And@@PrimeQ[6#+{1, -1}]&] (* Harvey P. Dale, Feb 05 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Apr 09 2010, Apr 10 2010
STATUS
approved
