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.
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.
253 Solvers
622 Solvers
Vectorizing, too easy or too hard?
128 Solvers
Convert a structure into a string
96 Solvers
Convert from Base 10 to base 5
205 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!