public class Test3 {
public static void main(String[] args) {
Test3.iszhishu(7);
Test3.iszhishu(100);
}
public static void iszhishu(int n) {
while(true)
{
n++;
boolean y=Test3.flag(n);
if(y)
{
System.out.print(n);
break;
}
}
}
public static boolean flag(int x ) {
for(int i=2;i<x;i++)
{
if(x%i==0)
{
return false;
}
}
return true;
}
}