OFFSET
1,2
COMMENTS
Let G_n denote the twins gap between two consecutive twins, thus a twins gap is the difference between two consecutive twins (p_n, p_n+2) and (p_m, p_m+2), i.e., the difference between p_m and p_n+2. G_n = p_m - (p_n +2) We have: G_1 = 0, G_2 = 4, G_3 = 4, G_4 = 10.
LINKS
FORMULA
MAPLE
MATHEMATICA
ps = Prime[Range[1000]]; p2 = Flatten[Position[Differences[ps], 2]]; Differences[ps[[p2]]] - 2 (* T. D. Noe, Jan 10 2012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Oleg Zyakun, Oct 28 2009
STATUS
approved