Sum of all the divisors of n - MATLAB Cody - MATLAB Central

Problem 46898. Sum of all the divisors of n

Output the sum of all the divisors of a number (n). For example n=10, divisors = 1, 2, 5, 10, output = 18.

Solution Stats

30.07% Correct | 69.93% Incorrect
Last Solution submitted on May 14, 2025

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8

Problem Recent Solvers23

Suggested Problems

More from this Author57

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!