Problem 44319. Write c^3 as sum of two squares a^2+b^2
Solution Stats
Problem Comments
-
4 Comments
Last test case is wrong. Does not catch 500^3 == 1160^2 + 11120^2 and 500^3 == 2000^2 + 11000^2 .
First case is also wrong: 1^3 = 1^2 + 0^2. The problem doesn't specify positive numbers, so it is a valid solution. (If you *really* want to open a can of worms, a and b don't have to be integers, or even real numbers according to the test suite!)
You are right James. I have add some sentences to problem definition.
How on earth the leading solution size is 7? can you please provide it also for us ?
Solution Comments
-
2 Comments
Test 12: There are two solutions missing [1160 11120; 2000 11000].
Thanks T. Dunker, I have corrected the mistake
Problem Recent Solvers308
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
43466 Solvers
-
Return a list sorted by number of occurrences
2080 Solvers
-
551 Solvers
-
Given a square and a circle, please decide whether the square covers more area.
635 Solvers
-
Find the Oldest Person in a Room
12432 Solvers
More from this Author92
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!