Find the N-th Prime Number

Asked at NVIDIA · Coding & Leetcode-style Questions · Difficulty: Medium

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.

Loading the problem…