Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
100175 陈依博 100至200之间的所有素数 C++ Wrong Answer 0 MS 260 KB 470 2024-12-06 17:57:04

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 a,b,c=0; for(b=100;b<=200;b++){ for(a=2;a<=200;a++){ if(b%a==0){ c++; if(c==0){ cout<<b<<"是素数"<<endl; } } } } }


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-----