OFFSET
1,1
EXAMPLE
The 10th prime is 29, the 10th composite is 16. 29-16=13 the 5th entry in the table.
PROG
(PARI) composite(n) = { local(c, x); c=1; x=0; while(c <= n, x++; if(!isprime(x), c++); ); return(x) } \\ the n-th composite
primepcomp(n) = { for(x=5, n, y=prime(x)- composite(x); if(isprime(y), print1(y", ")) ) }
CROSSREFS
KEYWORD
nonn
AUTHOR
Cino Hilliard, Aug 23 2004
EXTENSIONS
Example corrected by Harvey P. Dale, Aug 21 2019
STATUS
approved