Cody

Solution 1659562

Submitted on 25 Oct 2018 by Kristopher Powers
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
m = 220; n = 284; y_correct = true; assert(isequal(amicable(m,n),y_correct))

a = 1 2 4 5 10 11 outvar = 284 a = 1 2 4 outvar = 220

2   Pass
m = 220; n = 504; y_correct = false; assert(isequal(amicable(m,n),y_correct))

a = 1 2 4 5 10 11 outvar = 284 a = 1 2 3 4 6 7 8 9 12 14 18 21 outvar = 1056

3   Pass
m = 2620; n = 2924; y_correct = true; assert(isequal(amicable(m,n),y_correct))

a = 1 2 4 5 10 20 outvar = 2924 a = 1 2 4 17 34 43 outvar = 2620

4   Pass
m = 5020; n = 5564; y_correct = true; assert(isequal(amicable(m,n),y_correct))

a = 1 2 4 5 10 20 outvar = 5564 a = 1 2 4 13 26 52 outvar = 5020

5   Pass
m = 2924; n = 5020; y_correct = false; assert(isequal(amicable(m,n),y_correct))

a = 1 2 4 17 34 43 outvar = 2620 a = 1 2 4 5 10 20 outvar = 5564