Back
Close

Primes

Statement

 Goal

You must output the nth prime number.
Input
An integer n.
Output
The nth prime number.
Constraints
0 < n ≤ 5000
0 < result < 50000
Example
Input
2
Output
3

Game modes
Fastest, Shortest

Test cases
A small number Test
Input
2
Output
3

Validator 1 Validator
Input
1
Output
2

Another small number Test
Input
5
Output
11

Validator 2 Validator
Input
7
Output
17

A big number Test
Input
40
Output
173

Validator 3 Validator
Input
60
Output
281

Another big number Test
Input
50
Output
229

Validator 4 Validator
Input
51
Output
233

A huge number Test
Input
1000
Output
7919

Validator 5 Validator
Input
1023
Output
8147

A HUGE number Test
Input
5000
Output
48611

Validator 7 Validator
Input
4885
Output
47381

Solution language

Solution

Stub generator input