@Rajesh Option B is m > Max (u, v, w)
2 > Max (3,4,5) > 5 which is NOT true.
The case of Pythagorean triplets is considered by @master_shifu sir in the explanation.

@anurag_chauhan The last sum is some sort of miscalculation I guess, because according to the sum when y=1 then x = 1 * 6 and not vice versa. In that case the value of y extends upto 100 and x upto 496*501 for which the ans should be 501.