Output the sum of all the divisors of a number (n). For example n=10, divisors = 1, 2, 5, 10, output = 18.
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers27
Suggested Problems
-
Find the sum of the elements in the "second" diagonal
1208 Solvers
-
Longest run of consecutive numbers
6790 Solvers
-
Change the sign of even index entries of the reversed vector
662 Solvers
-
Back to basics - mean of corner elements of a matrix
471 Solvers
-
Find the next Fibonacci number
931 Solvers
More from this Author65
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!