Write a function that given a number, returns the sum of all of its factors. Input: 4 Output: 6 (because it is 1+2+4) Input: 10 Output: 18 (because it is 1+2+5+10)
Write a function that given a number, returns the sum of all of its factors.
Input: 4
Output: 6 (because it is 1+2+4)
Input: 10
Output: 18 (because it is 1+2+5+10)