Cody

Solution 2040210

Submitted on 30 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   Pass
assert(isequal(isPrime(2),true))

b = logical 1

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

b = logical 1

Assertion failed.

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

b = logical 1

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

b = logical 1

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

b = logical 1

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

b = logical 1

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

b = logical 1 b = logical 0

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

b = logical 1 b = logical 0

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

b = logical 1 b = logical 0