OFFSET
1,1
EXAMPLE
5 and 11 are the 3rd and 5th primes; 7 begins a run of 1 primes.
17 and 31 are the 7rd and 11th primes; 19 begins a run of 3 primes.
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
Extended and edited by T. D. Noe, Apr 14 2009
STATUS
approved