Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
135644 hjx1 100至200之间的所有素数 C++ Time Limit Exceeded 1000 MS 252 KB 418 2025-11-08 10:20:09

Tests(0/1):


Code:

#include <bits/stdc++.h> using namespace std; int main() { int i,j,temp; i=100; while (i<=200) { j=2; temp=1; while (j<=sqrt(i)) { if (i%j==0) { temp=0; break; } else j++; } if (temp!=0) cout<<i<<endl; } return 0; }