Fix a PP issue with nth_prime
Use inverse prime count for nth prime in XS code