$a^2+b^2=c^2$ for $a$ and $c$ being a prime numbers and $b$ being a number that is a factor of at most 4 not necessarily distinct prime numbers
My progress. From the fact that both sides of the equation must be odd $b$ is an even number. Say $b=2b_1$. With this substitution and by subtraction of $b^2$ from both sides we get $a^2=4b_1-c^2$ or $a^2=(2b_1-c)(2b_1+c)$ As $a$ is a prime number and expressions in parenthesis are different form each other we have $2b_1-c = 1$ and $a^2=2b_1+c$ This is where I stopped. I' ve tried to use some modular arithmetic or play around and get some more equations by I couldn't. What should I do now? Pls help, I'd prefer to get a hint firstly.
You should get $a^2=c^2-b^2=(c-b)(c+b)$. If $a$ is prime, $c-b$ must be $1$ and you can substitute in to find the triple is $(a,\frac 12(a^2-1),\frac12(a^2+1))$. Pick $a$ an odd prime, compute $b,c$ and check their factors. If $a=5$ you get the $(5,12,13)$ triangle, which is acceptable. If $a=7$ you get $(7,24,25)$ which is not.