program to find nth prime number in python