Back
Close

Print the nth Euclid number

Statement

 Goal

You must output the nth Euclid number to the given N.

The Euclid numbers are integers of the form En = pn# + 1, where pn# is the nth primorial, i.e. the product of the first n prime numbers.
Input
Line 1: An integer N for the number
Output
Line 1 : The nth Euclid number to the given input.
Constraints
0 ≤ N ≤ 10
Example
Input
0
Output
2

Game modes
Fastest, Shortest

Test cases
Test 1 Test
Input
0
Output
2

Validator 1 Validator
Input
5
Output
2311

Test 2 Test
Input
1
Output
3

Validator 2 Validator
Input
6
Output
30031

Test 3 Test
Input
2
Output
7

Validator 3 Validator
Input
7
Output
510511

Test 4 Test
Input
3
Output
31

Validator 4 Validator
Input
8
Output
9699691

Test 5 Test
Input
4
Output
211

Validator 5 Validator
Input
9
Output
223092871

Solution language

Solution

Stub generator input