Given a positive integer x, calculate the sum of all of the divisors of the number. Please include the number itself in your final answer. For example, 1, 3, 5 and 15 are all the proper divisors of 15, so sum_divisors(15)=1+3+5+15, which is 24.
Your score will be based on how quickly your script solves the problems in the test suite, rather than the typical Cody size. Good luck!
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers36
Suggested Problems
-
3484 Solvers
-
"Low : High - Low : High - Turn around " -- Create a subindices vector
583 Solvers
-
Determine Whether an array is empty
811 Solvers
-
Given a window, how many subsets of a vector sum positive
871 Solvers
-
Find Index of maximum Value and maximum Value of a vector
168 Solvers
More from this Author80
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!