Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
13355 徐一喆 求和 C++ Accepted 1 MS 728 KB 222 2021-05-26 16:27:53

Tests(3/3):


Code:

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