#include<stdio.h>标签:count,200,int,用试,素数,printf,100 From: https://blog.51cto.com/u_15923331/5981245
int main()
{
int k = 0;
int i = 0;
int count = 0;
for(k=100;k<=200;k++)
{
for(i=2;i<=k;i++)
{
if (k % i == 0)
{
break;
}
}
if (i == k)
{
printf("%d ", k);
count++;
}
}
printf("\n素数总数为%d个", count);
return 0;
}