Cody

Solution 2024538

Submitted on 16 Nov 2019
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
assert(isequal(isPrime(2),true))

Undefined function 'eq' for input arguments of type 'cell'. Error in isPrime (line 5) if i == notprimes(j) Error in Test1 (line 1) assert(isequal(isPrime(2),true))

2   Fail
assert(isequal(isPrime(1),false))

Undefined function 'eq' for input arguments of type 'cell'. Error in isPrime (line 5) if i == notprimes(j) Error in Test2 (line 1) assert(isequal(isPrime(1),false))

3   Fail
assert(isequal(isPrime(3),true))

Undefined function 'eq' for input arguments of type 'cell'. Error in isPrime (line 5) if i == notprimes(j) Error in Test3 (line 1) assert(isequal(isPrime(3),true))

4   Fail
assert(isequal(isPrime(11),true))

Undefined function 'eq' for input arguments of type 'cell'. Error in isPrime (line 5) if i == notprimes(j) Error in Test4 (line 1) assert(isequal(isPrime(11),true))

5   Fail
assert(isequal(isPrime(97),true))

Undefined function 'eq' for input arguments of type 'cell'. Error in isPrime (line 5) if i == notprimes(j) Error in Test5 (line 1) assert(isequal(isPrime(97),true))

6   Fail
assert(isequal(isPrime(199),true))

Undefined function 'eq' for input arguments of type 'cell'. Error in isPrime (line 5) if i == notprimes(j) Error in Test6 (line 1) assert(isequal(isPrime(199),true))

7   Fail
assert(isequal(isPrime(65),false))

Undefined function 'eq' for input arguments of type 'cell'. Error in isPrime (line 5) if i == notprimes(j) Error in Test7 (line 1) assert(isequal(isPrime(65),false))

8   Fail
assert(isequal(isPrime(93),false))

Undefined function 'eq' for input arguments of type 'cell'. Error in isPrime (line 5) if i == notprimes(j) Error in Test8 (line 1) assert(isequal(isPrime(93),false))

9   Fail
assert(isequal(isPrime(77),false))

Undefined function 'eq' for input arguments of type 'cell'. Error in isPrime (line 5) if i == notprimes(j) Error in Test9 (line 1) assert(isequal(isPrime(77),false))