• + 4 comments

    I mean, since we're shortening code...

    for (int i=1;i<=n;sum+=(n%i++?0:i-1));