OFFSET
1,1
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 no twin prime pair.
EXAMPLE
Prime(5) -> prime(6) = 31 -> 41 contains no twin prime pairs, so 5 is in the sequence.
PROG
(PARI) piptwins2(n) = { for(x=1, n, f=1; p1 = prime(prime(x)); p2 = prime(prime(x+1)); for(y=p1, p2, if(isprime(y) && y+2 <= p2 && isprime(y+2), f=0) ); if(f, print1(x", ")) ) }
CROSSREFS
KEYWORD
nonn
AUTHOR
Cino Hilliard, Oct 26 2003
STATUS
approved