Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int sum_div_prim ( int x , int & y )
- {
- int i;
- y = 0 ;
- for ( i = 1 ; i * i < x ; ++i )
- if ( x % i == 0 ) y = y + i , y = y + x / i ;
- if ( i * i == x ) y = y + i ;
- return y ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement