Let $\overline{abc}$ be a three-digit number with nonzero digits such that $a^2 + b^2 = c^2$. What is the largest possible prime factor of $\overline{abc}$?

Let's think step by step and output the final answer within \boxed{}.
user