An integer-sided right triangle with sides
, is called a "wide Pythagorean triangle", if
, and
.
Write a program that counts all wide Pythagorean triangles whose no sides greater than a given limit s.
Below is the list of all Pythagorean triangles with all sides
:
Therefore, for
, your program output should be
.
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers5
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
2074 Solvers
-
Similar Triangles - find the height of the tree
479 Solvers
-
506 Solvers
-
Natural numbers in string form
1970 Solvers
-
482 Solvers
More from this Author116
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!