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
Join Cody Contest 2025 — Have Fun and Win Prizes!
...
We’re excited to invite you to Cody Contest 2025! 🎉 Pick a team,...

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!