100 atcoder#ABC149C. [ABC149C] Next Prime

[ABC149C] Next Prime

Score: 300300 points

Problem Statement

Find the minimum prime number greater than or equal to XX.

Notes

A prime number is an integer greater than 11 that cannot be evenly divided by any positive integer except 11 and itself.

For example, 22, 33, and 55 are prime numbers, while 44 and 66 are not.

Constraints

  • 2X1052 \le X \le 10^5
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

XX

Output

Print the minimum prime number greater than or equal to XX.

20
23

The minimum prime number greater than or equal to 2020 is 2323.

2
2

XX itself can be a prime number.

99992
100003