OFFSET
1,1
COMMENTS
(p1, p2=p1+2) is a pair of twin primes.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..10000
MATHEMATICA
lst={}; Do[p1=Prime[n]; p2=p1+2; If[PrimeQ[p2]&&PrimeQ[2*p1+p2], AppendTo[lst, p1]], {n, 7!}]; lst
Transpose[Select[Partition[Prime[Range[1000]], 2, 1], #[[2]]-#[[1]] == 2 && PrimeQ[ 2#[[1]]+ #[[2]]]&]][[1]] (* Harvey P. Dale, Apr 09 2012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Apr 02 2010
EXTENSIONS
Definition edited by Harvey P. Dale, Aug 13 2024
STATUS
approved