Run ID:100176

提交时间:2024-12-06 17:57:39

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a b c; c=0; for(a=100;a<=200;a++){ for(b=2;b<a;b++){ if(a%b==0){ c=c+1; } if(c==0){ cout<<a<<"是素数"; } } return 0; }