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
Similar Kata:
Stats:
Created | Jun 25, 2017 |
Warriors Trained | 85 |
Total Skips | 4 |
Total Code Submissions | 231 |
Total Times Completed | 6 |
Swift Completions | 6 |
Total Stars | 6 |
% of votes with a positive feedback rating | 0% of 3 |
Total "Very Satisfied" Votes | 0 |
Total "Somewhat Satisfied" Votes | 0 |
Total "Not Satisfied" Votes | 3 |
Total Rank Assessments | 3 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 8 kyu |