Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
56097 wuzhiyan 输出N以内的素数 C++ Compile Error 0 MS 0 KB 281 2024-11-09 12:46:50

Tests(0/0):


#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; for(int i=1;i<=n;i++) { for(int j=1;j<=i;j++) { if(i%j=0) break; else continue; } cout<<i<<endl; } return 0; }


Judgement Protocol: