provides the nth prime in a list of all primes for a given number n