complete nth_prime