Find the n'th prime.

3.5

4 votes
Prime Factorization
Problem

Given the value of n, print the n'th prime number.

Input : A single integer n.
Output : A single number which is the n'th prime number.

Constraints : 1<=n<=1000

Time Limit: 5
Memory Limit: 256
Source Limit:
Explanation

The first few prime numbers are: 2,3,5,7. So, the answer is 3.

Editor Image

?