Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
96022 | 只因你太美(Ikun 真爱粉) | 素数检测 | C++ | Output Limit Exceeded | 60 MS | 260 KB | 460 | 2024-11-02 17:25:27 |
#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; bool a(int m){ if(m<=1)return 0; for(int i=2;i*i<=m;i++){ return 0; } return 1; } int main(){ int n; for(int i=2;i<=3000000;i++){ if(a)cout<<i<<" "; } return 0; }