Description: #include<stdio.h>
int main()
{
int i,n,mark=0
printf("请输入一个整数:",n)
scanf(" d",&n)
for(i=2 i<n/2+1 i++)
{
if(n i==0)
{
printf(" d不是素数",n)
mark=1
break
}
}
if(mark==0)
printf(" d是素数",n)
return 0
}
To Search:
File list (Check if you may need any files):
Cpp1.opt
Cpp1.plg
Cpp1.cpp
Cpp1.dsp
Cpp1.dsw
Cpp1.ncb