If p is the perimeter of a right triangle with integer sides {a, b, c}, exactly one solution exists for p = 12: {3, 4, 5}. Given p_max, find which value of p <= p_max has the most solutions.
Example 1:
Example 2:
Example 3:
Constraints:
12 <= p_max <= 1000
Tags:
