Cody

Problem 42791. Number of divisors of a given number

Solution 2871161

Submitted on 23 Aug 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
filetext = fileread('your_fcn_name.m'); assert(isempty(strfind(filetext, 'sqrt'))) assert(isempty(strfind(filetext, 'for')))

Assertion failed.

2   Fail
n= 6880; y_correct = 24; assert(isequal(your_fcn_name(n),y_correct))

Assertion failed.

3   Fail
n= 5050; y_correct = 12; assert(isequal(your_fcn_name(n),y_correct))

Assertion failed.

4   Fail
n= 188325; y_correct = 36; assert(isequal(your_fcn_name(n),y_correct))

Assertion failed.

5   Fail
n= 76576500; y_correct = 576; assert(isequal(your_fcn_name(n),y_correct))

Assertion failed.

6   Fail
n= 74; y_correct = 4; assert(isequal(your_fcn_name(n),y_correct))

Assertion failed.

7   Fail
n=14^8 ; y_correct = 81; assert(isequal(your_fcn_name(n),y_correct))

Assertion failed.

8   Fail
n=314721 ; y_correct = 27; assert(isequal(your_fcn_name(n),y_correct))

Assertion failed.

Suggested Problems

More from this Author12

Community Treasure Hunt

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

Start Hunting!