判断一个数是不是素数。。。

1 bool iss(int x)
2 {
3     if(x<2)return false;
4     for(int i=2;i*i<=x;i++)
5         if(x%i==0)return false;
6     return true;
7 }
原文地址:https://www.cnblogs.com/tflsnoi/p/8026970.html