Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
103286 陈家渝 100至200之间的所有素数 C++ Wrong Answer 0 MS 260 KB 462 2024-12-28 15:34:20

Tests(0/1):


Code:

#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 i,j; for(i=100;i<=200;i++) { for(j=2;j<=i-1;j++) { if(i%j==0) break; } if(j==i) cout<<i; } return 0; }


Run Info:

------Input------
0
------Answer-----
101 103 107 109 113 127 131 137 139 149 151 157 163 167 173 179 181 191 193 197 199
------Your output-----
101103107109113127131137139149151157163167173179181191193197199