Cody

Solution 2618992

Submitted on 26 Jun 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   Pass
filetext = fileread('countEvenDivisors.m'); assert(isempty(strfind(filetext, 'sqrt'))) assert(isempty(strfind(filetext, 'for'))) 2

ans = 2

2   Fail
n= 6880 * 2; y_correct = 24; assert(isequal(countEvenDivisors(n),y_correct)) 3

Assertion failed.

3   Fail
n= 5050 * 2; y_correct = 12; assert(isequal(countEvenDivisors(n),y_correct)) 4

Assertion failed.

4   Fail
n= 76576501; y_correct = 0; assert(isequal(countEvenDivisors(n),y_correct)) 5

Assertion failed.

5   Fail
n= 74 * 2; y_correct = 4; assert(isequal(countEvenDivisors(n),y_correct)) 6

Assertion failed.

6   Fail
n=14^8 *2 ; y_correct = 81; assert(isequal(countEvenDivisors(n),y_correct))

Assertion failed.