Cody

# Problem 45424. Amicable pair

Solution 2200081

Submitted on 8 Apr 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
assert(isequal(amicable_count(100),0))

Undefined function 'aliquotsum' for input arguments of type 'double'. Error in amicable_count (line 24) pdsum = aliquotsum(sequences(:,i)); Error in Test1 (line 1) assert(isequal(amicable_count(100),0))

2   Fail
assert(isequal(amicable_count(1000),1))

Undefined function 'aliquotsum' for input arguments of type 'double'. Error in amicable_count (line 24) pdsum = aliquotsum(sequences(:,i)); Error in Test2 (line 1) assert(isequal(amicable_count(1000),1))

3   Fail
assert(isequal(amicable_count(5000),3))

Undefined function 'aliquotsum' for input arguments of type 'double'. Error in amicable_count (line 24) pdsum = aliquotsum(sequences(:,i)); Error in Test3 (line 1) assert(isequal(amicable_count(5000),3))

4   Fail
assert(isequal(amicable_count(10000),5))

Undefined function 'aliquotsum' for input arguments of type 'double'. Error in amicable_count (line 24) pdsum = aliquotsum(sequences(:,i)); Error in Test4 (line 1) assert(isequal(amicable_count(10000),5))

5   Fail
assert(isequal(amicable_count(20000),8))

Undefined function 'aliquotsum' for input arguments of type 'double'. Error in amicable_count (line 24) pdsum = aliquotsum(sequences(:,i)); Error in Test5 (line 1) assert(isequal(amicable_count(20000),8))

6   Fail
assert(isequal(amicable_count(30000),8))

Undefined function 'aliquotsum' for input arguments of type 'double'. Error in amicable_count (line 24) pdsum = aliquotsum(sequences(:,i)); Error in Test6 (line 1) assert(isequal(amicable_count(30000),8))

7   Fail
assert(isequal(amicable_count(50000),8))

Undefined function 'aliquotsum' for input arguments of type 'double'. Error in amicable_count (line 24) pdsum = aliquotsum(sequences(:,i)); Error in Test7 (line 1) assert(isequal(amicable_count(50000),8))

8   Pass
%assert(isequal(amicable_count(100000),13))

9   Pass
%assert(isequal(amicable_count(2000000),8))