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.0% Correct | 64.0% Incorrect
Last Solution submitted on Aug 30, 2024

Problem Comments

Solution Comments

Show comments
R2025a Pre-release highlights
This topic is for discussing highlights to the current R2025a Pre-release.
14
6

Problem Recent Solvers64

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