Problem 45424. Amicable pair
Solution Stats
Problem Comments
-
3 Comments
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.
Test cases added (upper limit changed from 5e4 to 7.5e4).
More test cases might be added later (upper limit 9e4)
Note - Some solutions have failed to run in cody time limit for test case 7.5e4, and some more will fail for 9e4.
Solution Comments
Show commentsProblem Recent Solvers7
Suggested Problems
-
29905 Solvers
-
Find the numeric mean of the prime numbers in a matrix.
9120 Solvers
-
Calculate the area of a triangle between three points
3395 Solvers
-
Make combination of two given matrices.
54 Solvers
-
Try 1.5.4: Celsius to Fahrenheit
858 Solvers
More from this Author174
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!