nth prime number working