Improved sum of proper divisors computation.