delete pics to save space
This commit is contained in:
13
history_source/挑战程序设计竞赛/2.6.2.1.cpp
Normal file
13
history_source/挑战程序设计竞赛/2.6.2.1.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
#include<cstdio>
|
||||
int n;
|
||||
bool isp(int n)
|
||||
{
|
||||
for(int i=2;i*i<=n;i++) if(n%i==0) return 0;
|
||||
return n>1;
|
||||
}
|
||||
int main()
|
||||
{
|
||||
scanf("%d",&n);
|
||||
printf("%s\n",isp(n)?"Yes":"No");
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user