Untitled
unknown
plain_text
4 years ago
217 B
7
Indexable
#include <iostream>
using namespace std;
int sum_div(long long int n)
{
int sum = 0;
for(int i = 2; i <= n/2; i++){
if(n%i==0){
sum+= i;
}
}
return sum+1+n;
}Editor is loading...