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

Problem 44065. Number of even divisors of a given number

Difficulty:Rate

Given a Number n, return the number of its even divisors without listing them.

example:

n=14 ; EvenDivisors={2,14} ; y=2

n=68 ; EvenDivisors={2,34,4,68} ; y=4

Similar problems are: https://www.mathworks.com/matlabcentral/cody/problems/42791-number-of-divisors-of-a-given-number https://www.mathworks.com/matlabcentral/cody/problems/1025-divisors-of-an-integer

n=64 ; EvenDivisors={2,4,8,16,32} ; y=5

Solution Stats

36.73% Correct | 63.27% 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...
2
4
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
4

Problem Recent Solvers49

Community Treasure Hunt

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

Start Hunting!
Go to top of page