#include<stdio.h>
int main()
{
int a = 0;
for (a = 100; a <= 200; a++)
{
int x = 0;
for (x = 2; x < a; x++)
{
if (a % x == 0)
{
break;
}
}
if (x == a)
{
printf("%d ", a);
}
}
return 0;
}
用C语言输出100到200间的素数
最新推荐文章于 2024-08-22 23:45:07 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)