OFFSET
1,2
COMMENTS
It is not known whether there will always be instances where no twin prime pair exists between two consecutive prime-indexed primes.
FORMULA
x such that prime(prime(x)) and prime(prime(x+1)) contain a twin prime pair.
EXAMPLE
Prime(4)=17, prime(5)=31. Between 17 and 31 are two twin prime pairs: 17,19 and 29,31. prime(5) -> prime(6) = 31 -> 41 contain no twin prime pairs so 5 is not in the sequence.
PROG
(PARI) piptwins(n) = { for(x=1, n, f=0; p1 = prime(prime(x)); p2 = prime(prime(x+1)); for(y=p1, p2, if(isprime(y) && y+2 <= p2 && isprime(y+2), print1(x", "); break) ) ) }
CROSSREFS
KEYWORD
nonn
AUTHOR
Cino Hilliard, Oct 26 2003
STATUS
approved