OFFSET
3,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 3..1000
MATHEMATICA
Transpose[Select[Partition[Prime[Range[6, 4000]], 7, 1], #[[2]]-#[[1]]== #[[7]]- #[[6]] ==2&&#[[4]]-#[[3]]!=2&&#[[5]]-#[[4]]!=2&]][[1]](* Harvey P. Dale, Oct 07 2014 *)
PROG
(PARI) pbetweentw(n, p) = \p is the number of primes between { forstep(x1=1, n, 1, c=0; t1 = twin[x1]; t2 = twin[x1+1]; for(y=t1+4, t2-1, if(isprime(y), c++) ); if(c==p, print1(t1", ")) ) } savetwins(n) = \ build a twin prime table of lower bounds { twin = vector(n); c=1; forprime(x=3, n*10, if(isprime(x+2), twin[c]=x; c++; ) )
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Jan 01 2004
EXTENSIONS
Cross-reference added by Harvey P. Dale, Oct 08 2014
STATUS
approved