Added NthPrimeNumber function