Determines the nth prime number