1.程序代码
#include <stdio.h>
int main(){
int i, n, count;
for (n = 101 ; n <= 200 ; n++)
{
count = 0;
for (i = 2 ; i < n ; i++)
{
if (n%i == 0)
count++;
}
if (count == 0)
printf("%d\n", n);
}
system("pause");
return 0;
}
2.执行结果
1.程序代码
#include <stdio.h>
int main()}
2.执行结果