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

Problem 42791. Number of divisors of a given number

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
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8

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!