I'm not a mathematician, and I'm not sure how to phrase this question properly, so please bear with me as I stumble through the question.
Considering Pythagorean's Theorem a²+b²=c²
I'm looking for solutions that fit the following requirements:
- two of the prime leg, even leg or hypotenuse must be prime numbers
- the third number must be an integer
- the slope is close to 1
The third requirement is obviously not clear. Here are some examples:
prime leg even leg hypotenuse slope
--------- -------- --------- -----
3 4 5 0.750
5 12 13 0.417
11 60 61 0.183
19 180 181 0.106
29 420 421 0.069
59 1740 1741 0.034
61 1860 1861 0.033
But as you see in the table, the larger numbers become less and less steep.
How would you go about calculating this?
You are going to have a hard time with this. Clearly, your Pythagorean triples are primitive. Which means that there are natural numbers $u,v$ such that your so-called prime leg is equal to $u^2-v^2$, the even leg is equal to $2uv$ and the hypotenuse is equal to $u^2+v^2$.
The fact that your prime leg is equal to $u^2-v^2=(u-v)(u+v)$, and at the same time a prime number means that we must have $u-v=1$. Rewriting the above expressions for the three sides using this gives a prime leg of length $2v+1$ and even leg of length $2(v^2+v)$. The ratio between these two sides is just going to get further and further away from $1$ as you pick bigger and bigger primes for your prime side.
As a side note, the length of the hypotenuse will always be $(v+1)^2+v^2=2(v^2+v)+1$, which is $1$ more than the length of the even leg. You probably already spotted this pattern from your table.