Cody

Solution 804661

Submitted on 11 Jan 2016
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
%% n1 = 3; n2 = 5; tf_correct = 0; assert(isequal(prime_to_each_other(n1, n2),tf_correct))

Error: <a href="matlab: opentoline('/users/mss.system.ITL886/prime_to_each_other.m',7,3)">File: prime_to_each_other.m Line: 7 Column: 3 </a>A BREAK statement appeared outside of a loop. Use RETURN instead.

2   Fail
%% n1 = 27; n2 = 123; tf_correct = 1; assert(isequal(prime_to_each_other(n1, n2),tf_correct))

Error: <a href="matlab: opentoline('/users/mss.system.ITL886/prime_to_each_other.m',7,3)">File: prime_to_each_other.m Line: 7 Column: 3 </a>A BREAK statement appeared outside of a loop. Use RETURN instead.

3   Fail
%% n1 = 36; n2 = 49; tf_correct = 0; assert(isequal(prime_to_each_other(n1, n2),tf_correct))

Error: <a href="matlab: opentoline('/users/mss.system.ITL886/prime_to_each_other.m',7,3)">File: prime_to_each_other.m Line: 7 Column: 3 </a>A BREAK statement appeared outside of a loop. Use RETURN instead.

4   Fail
%% n1 = 27; n2 = 28; tf_correct = 0; assert(isequal(prime_to_each_other(n1, n2),tf_correct))

Error: <a href="matlab: opentoline('/users/mss.system.ITL886/prime_to_each_other.m',7,3)">File: prime_to_each_other.m Line: 7 Column: 3 </a>A BREAK statement appeared outside of a loop. Use RETURN instead.

Suggested Problems

More from this Author2