Problem 45424. Amicable pair
Solution Stats
Problem Comments
-
2 Comments
Rafael S.T. Vieira
on 6 Sep 2020
The 8th test case is correct and can be solved within Cody's time limit. Why is it not being used? Up to 200.000, there are 20 amicable pairs.
Rafael S.T. Vieira
on 6 Sep 2020
For instance 176272,180848 is the 20th pair. For 3e5 my code can't go fast enough for Cody (45s), but I've found just 2 additional pairs 196724, 202444 and 185368, 203432.
Problem Recent Solvers7
Suggested Problems
-
Determine Whether an array is empty
698 Solvers
-
Convert a vector into a number
547 Solvers
-
Test if two numbers have the same digits
207 Solvers
-
182 Solvers
-
Switch matrix to a column vector
301 Solvers
More from this Author149
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!