Count the unitary divisors of a number - MATLAB Cody - MATLAB Central

Problem 56743. Count the unitary divisors of a number

Difficulty:Rate
Cody Problem 56738 asks for a list of the unitary divisors of a number. For this problem, write a function to count the unitary divisors of a number. For example, the unitary divisors of 18 are 1, 2, 9, and 18; therefore, the number of unitary divisors is 4.

Solution Stats

68.75% Correct | 31.25% Incorrect
Last Solution submitted on Jun 23, 2024

Solution Comments

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

Problem Recent Solvers11

Suggested Problems

More from this Author291

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