Divisors of an integer - MATLAB Cody - MATLAB Central

Problem 1025. Divisors of an integer

Difficulty:Rate

Given a number N, return a vector V of all integers that divide N. For example, N = 10 Then V=[1 2 5 10]

Solution Stats

45.74% Correct | 54.26% Incorrect
Last Solution submitted on Apr 27, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
2
3

Problem Recent Solvers191

Suggested Problems

More from this Author2

Problem Tags

Community Treasure Hunt

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

Start Hunting!