#include <iostream>
using namespace std;
int main()
{
int k,m;
cin>>m;
for(k=2;k<m;k++)
if(m%k==0)
break;
if(k==m)
cout<<m<<"是素数"<<endl;
else
cout<<m<<"不是素数"<<endl;
system("pause");
return 0;
}
05-14
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交