#include <stdio.h>
#include <math.h>
int is_su(int j)
{
int k=3;
while(k<=sqrt(j))
{
int n=0;
n=j%k;
k+=2;
if (n==0)
return 0;
if (j%2==0)
return 0;
}
return 1;
}
int main(){
int i=0,count=0;
for(i=100;i<=200;i++)
{
if (is_su(i)==1)
{printf(" %d ",i);
count++;}
}
printf("\n");
printf("%d",count);
return 0;
}
07-06
212
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)