solved #23, added sumOfDivisors helper function