Added getNth function

The getNth function returns the nth prime number, gets the nth prime
number from the primeSet array, primeSet array storing the values of all
primes less than 10,000.