Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
135646 hjx1 100至200之间的所有素数 C++ Accepted 1 MS 256 KB 434 2025-11-08 10:25:50

Tests(1/1):


Code:

#include <bits/stdc++.h> using namespace std; int main() { int i,j,k,n,temp; i=101; 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; i=i+2; } return 0; }