Finds the nth prime number