Number of divisors of a given number - MATLAB Cody - MATLAB Central

Problem 42791. Number of divisors of a given number

Difficulty:Rate

Given a Number n, return the number of his divisors without listing them

example:

n=14 ; Divisors={1,7,2,14} ; y=4

n=68 ; Divisors={1,2,34,17,4,68} ; y=6

Solution Stats

36.12% Correct | 63.88% Incorrect
Last Solution submitted on Mar 30, 2025

Problem Comments

Solution Comments

Show comments
Registration Now Open for MathWorks AUTOMOTIVE CONFERENCE 2025
...
Hello Community, We're excited to announce that registration is now open for the...

Problem Recent Solvers65

Suggested Problems

More from this Author12

Problem Tags

Community Treasure Hunt

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

Start Hunting!
Go to top of page