AtCoder Beginner Contest 149
翻译中…
Problem Statement
翻译中…
Find the minimum prime number greater than or equal to $X$.
翻译中…
Note
翻译中…
A prime number is an integer greater than $1$ that cannot be evenly divided by any positive integer except $1$ and itself.
翻译中…
For example, $2$, $3$, and $5$ are prime numbers, while $4$ and $6$ are not.
翻译中…
Constraints
翻译中…
$2 \le X \le 10^5$- All values in input are integers.
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
X
翻译中…
Output
翻译中…
Print the minimum prime number greater than or equal to $X$.
翻译中…
样例
Input #1
20
Output #1
23
The minimum prime number greater than or equal to $20$ is $23$.
Input #2
2
Output #2
2
$X$ itself can be a prime number.
Input #3
99992
Output #3
100003
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。