Cody

Solution 1605355

Submitted on 10 Aug 2018
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
x = [5 4 7 3 1]; y_correct = 7; assert(isequal(mostPrimes(x),y_correct));

arr = []

Undefined function 'prime' for input arguments of type 'double'. Error in mostPrimes (line 4) append=length(prime(x(i))) Error in Test1 (line 3) assert(isequal(mostPrimes(x),y_correct));

2   Fail
x = [5 3 1]; y_correct = 5; assert(isequal(mostPrimes(x),y_correct));

arr = []

Undefined function 'prime' for input arguments of type 'double'. Error in mostPrimes (line 4) append=length(prime(x(i))) Error in Test2 (line 3) assert(isequal(mostPrimes(x),y_correct));

Suggested Problems