Cody

# Problem 42704. prime to each other

Solution 2873102

Submitted on 24 Aug 2020 by Ramesh Kumar V
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
n1 = 3; n2 = 5; tf_correct = 0; assert(isequal(prime_to_each_other(n1, n2),tf_correct))

x1 = 3 x2 = 5 z = 1×0 empty double row vector z1 = logical 1 y = logical 0

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

x1 = 3 3 3 x2 = 3 41 z = 3 z1 = logical 0 y = logical 1

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

x1 = 2 2 3 3 x2 = 7 7 z = 1×0 empty double row vector z1 = logical 1 y = logical 0

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

x1 = 3 3 3 x2 = 2 2 7 z = 1×0 empty double row vector z1 = logical 1 y = logical 0

### Community Treasure Hunt

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

Start Hunting!