Cody

Solution 2029114

Submitted on 20 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))

Unrecognized function or variable 'x'. Error in isPrime (line 2) b = isprime(x); Error in Test1 (line 1) assert(isequal(isPrime(2),true))

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

Unrecognized function or variable 'x'. Error in isPrime (line 2) b = isprime(x); Error in Test2 (line 1) assert(isequal(isPrime(1),false))

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

Unrecognized function or variable 'x'. Error in isPrime (line 2) b = isprime(x); Error in Test3 (line 1) assert(isequal(isPrime(3),true))

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

Unrecognized function or variable 'x'. Error in isPrime (line 2) b = isprime(x); Error in Test4 (line 1) assert(isequal(isPrime(11),true))

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

Unrecognized function or variable 'x'. Error in isPrime (line 2) b = isprime(x); Error in Test5 (line 1) assert(isequal(isPrime(97),true))

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

Unrecognized function or variable 'x'. Error in isPrime (line 2) b = isprime(x); Error in Test6 (line 1) assert(isequal(isPrime(199),true))

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

Unrecognized function or variable 'x'. Error in isPrime (line 2) b = isprime(x); Error in Test7 (line 1) assert(isequal(isPrime(65),false))

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

Unrecognized function or variable 'x'. Error in isPrime (line 2) b = isprime(x); Error in Test8 (line 1) assert(isequal(isPrime(93),false))

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

Unrecognized function or variable 'x'. Error in isPrime (line 2) b = isprime(x); Error in Test9 (line 1) assert(isequal(isPrime(77),false))