Cody

Problem 2883. prime test

Solution 1817898

Submitted on 16 May 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
y_correct = 97; assert(isequal(your_fcn_name(),y_correct))

Not enough input arguments. Error in isprime (line 13) isp = false(size(X)); Error in your_fcn_name (line 2) y = isprime(); Error in Test1 (line 2) assert(isequal(your_fcn_name(),y_correct))

Suggested Problems

More from this Author4

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!