#include<math.h>
int main()
{
int count=0;
int i=0;
for(i=101;i<=200;i+=2)
{
int j=1;
int flag=1;
for(j=2;j<sqrt(i);j++)
{
if(i%j==0)
{
flag=0;
break;
}
}
if(flag==1)
{
count++;
printf("%d ",i);
}
}
printf("\ncount=%d\n",count);
return 0;
}
标签:count,200,101,int,素数,100,main
From: https://blog.51cto.com/u_16190077/6827805