| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 89466 | sh25_zhangyj | 合数求和 | C++ | Accepted | 0 MS | 252 KB | 296 | 2026-06-05 14:26:55 |
#include<bits/stdc++.h> using namespace std; bool isprime(int n){ for(int i=2;i<n;++i){ if(n%i==0) return false; } return true; } int main(){ int s=0,u; cin>>u; for(int j=4;j<=u;++j){ if(!isprime(j)) s+=j; } cout<<s; return 0; }