include [HTML_REMOVED]
include [HTML_REMOVED]
define MaxSize 10003
int N;
int sushu[MaxSize];
int isSushu(int x)
{
if(x == 1) return 0;
for(int i = 2; i < x; ++ i)
{
if(x % i == 0) return 0;
}
return 1;
}
int main()
{
int n;
scanf(“%d”, &n);
if(isSushu(n)) printf("%d\n", n);
else
{
while(1)
{
++ n;
if(isSushu(n)){
printf("%d\n", n);
return 0;
}
}
}
return 0;
}