标签:efi == int 今天 bsp main lag std sys
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
int main()//100-200以内的素数
{
int count = 0;
int i, j;
_Bool flag = 1;
for (i = 100; i < 200; i++){
for (j = 2; j < i / 2; j++){
if (i % j == 0){
flag = 0;
break;
}
}
if (flag){
count++;
}
else{
flag = 1;
}
}
printf("100-200以内有%d个素数\n", count);
system("pause");
return 0;
}
标签:efi == int 今天 bsp main lag std sys
原文地址:https://www.cnblogs.com/Leafbud/p/12554459.html