returns the value of the nth prime number