OFFSET
1,1
COMMENTS
Conjecture: There cannot be an even number total of primes between two consecutive prime-indexed primes.
The conjecture is true except for the first two prime-indexed primes (3 and 5), which have zero primes between them.
EXAMPLE
prime(prime(4)) = 17, prime(prime(5)) = 31. 19,23,29 are the "only" three primes between 17 and 31.
PROG
(PARI) pipprimes(n, m) = { for(x=1, n, c=0; p1 = prime(prime(x)); p2 = prime(prime(x+1)); forprime(y=p1+2, p2-2, c++); if(c==m, forprime(y=p1+2, p2-2, print1(y", "); ); ) ) }
CROSSREFS
KEYWORD
nonn
AUTHOR
Cino Hilliard, Oct 31 2003
EXTENSIONS
Edited by T. D. Noe, Apr 14 2009
STATUS
approved