N-th prime

For this question we ask you to compute the n-th prime number.

Input

  • n: Integer representing the n-th number that should be printed

Output

n-th prime number

Examples

Example 1:

Input:

n = 3

Output: 5

Explanation:

We want the third prime number which is 5 given that 2, 3 and 5 are the first 3 prime numbers.

Example 2:

Input:

n = 5

Output: 11

Explanation:

"11 is the 5th prime number."

Constraints

  • The resulting prime number if guarenteed to be less than 100000

Try it yourself

Solution

Title

Script

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

Contrary to popular belief, Lorem Ipsum is not simply random text.

  >>> a = [1, 2, 3]
  >>> a[-1]
  3

Get premium for instant access to all content and solutions

Upgrade