Retired

Nth Prime Number (retired)

Description:

Your task is to write function, which returns Nth prime number, N ≤ 10e5.

A prime number (or a prime) is a natural number greater than 1 that has no positive divisors other than 1 and itself.

Example:
nPrime(1) // Should return 2
nPrime(11) // Should return 31
nPrime(90400) // Should return 1164841

A more detailed description of prime number can be found at: https://en.wikipedia.org/wiki/Prime_number

Algorithms
Numbers
Data Types

More By Author:

Check out these other kata created by artFintch

Stats:

CreatedJun 25, 2017
Warriors Trained85
Total Skips4
Total Code Submissions231
Total Times Completed6
Swift Completions6
Total Stars6
% of votes with a positive feedback rating0% of 3
Total "Very Satisfied" Votes0
Total "Somewhat Satisfied" Votes0
Total "Not Satisfied" Votes3
Total Rank Assessments3
Average Assessed Rank
6 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • artFintch Avatar
Ad