Problem 249. Project Euler: Problem 9, Pythagorean numbers
Solution Stats
Problem Comments
-
6 Comments
The description should be 9 + 16 = 5^2 and not 9+16 = 2^5 ?
Thanks Aurelien! Fixed it.
This is an interesting problem. Apparently everyone (including me) had to solve it by a basic brute force method with oly very slight variations. I did manage to use my MATLAB copy to use solve from the symbolic toolbox to get the answers, but the version of MATLAB on which Cody runs doesn't have access to a license for the symbolic toolbox.
@ Doug Hall, I have solved all the problems in the series. However, I have not received the badge and the associated scores on completion of the series. Can you please help me with this?
Wow, all the triangles are in the ratio of 8:15:17? Pretty huge oversight.
People have realized that all test cases are based on the primitive Pythagorean triplet (8, 15, 17) and the solutions are full of hacks. This is quite annoying as one cannot compare one's solution with other valid ones.
Solution Comments
Show commentsProblem Recent Solvers1287
Suggested Problems
-
Project Euler: Problem 4, Palindromic numbers
1134 Solvers
-
Project Euler: Problem 8, Find largest product in a large string of numbers
1189 Solvers
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
532 Solvers
-
1163 Solvers
-
785 Solvers
More from this Author51
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!