Cody

Solution 2083797

Submitted on 8 Jan 2020
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
p = 233; y_correct = true; assert(isequal(your_fcn_name(p),y_correct))

Unrecognized function or variable 'x'. Error in your_fcn_name (line 2) for i=1:x Error in Test1 (line 3) assert(isequal(your_fcn_name(p),y_correct))

2   Fail
p = 23; y_correct14 = true; assert(isequal(your_fcn_name(p),y_correct14))

Unrecognized function or variable 'x'. Error in your_fcn_name (line 2) for i=1:x Error in Test2 (line 3) assert(isequal(your_fcn_name(p),y_correct14))

3   Fail
p = 22; y_correct14 = false; assert(isequal(your_fcn_name(p),y_correct14))

Unrecognized function or variable 'x'. Error in your_fcn_name (line 2) for i=1:x Error in Test3 (line 3) assert(isequal(your_fcn_name(p),y_correct14))

4   Fail
p = 1 % p must also be a prime number !! y_correct1t = false; assert(isequal(your_fcn_name(p),y_correct1t))

p = 1

Unrecognized function or variable 'x'. Error in your_fcn_name (line 2) for i=1:x Error in Test4 (line 3) assert(isequal(your_fcn_name(p),y_correct1t))

5   Fail
p = 14 % p must also be a prime number !! correct1t = false; assert(isequal(your_fcn_name(p),correct1t))

p = 14

Unrecognized function or variable 'x'. Error in your_fcn_name (line 2) for i=1:x Error in Test5 (line 3) assert(isequal(your_fcn_name(p),correct1t))

6   Fail
p = 29 correct1tp = true; assert(isequal(your_fcn_name(p),correct1tp))

p = 29

Unrecognized function or variable 'x'. Error in your_fcn_name (line 2) for i=1:x Error in Test6 (line 3) assert(isequal(your_fcn_name(p),correct1tp))