Find the N-th Prime Number

Given a positive integer n, return the n-th prime number. A prime is an integer greater than 1 that has no positive divisors other than 1 and itself.

I/O format:

  • Input: an integer n
  • Output:...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: