| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 55961 | laichihao | 素数个数 | C++ | Wrong Answer | 0 MS | 236 KB | 289 | 2024-11-08 17:28:25 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,num=0; cin >> n; for(int i=2;i<=n;i++){ int ans=0; for(int j=i;j>=1;j++){ int m=i/j; if(m*j==i) ans+=1; } if(ans==2) num+=1; } return 0; }