Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
101782 | 房知谦 | 100至200之间的所有素数 | C++ | Accepted | 1 MS | 260 KB | 523 | 2024-12-18 20:33:26 |
#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 n=0; for(int x=100;x<=200;x++){ n=0; for(int i=2;i<x;i++){ if(x%i==0){ n+=1; } } if (n==0){ cout<<x<<endl; } } return 0; }