Using the classic parametrization of Pythagorean triples, for a primitive triple to contain two primes, we need
$$ a = |m^2 - n^2|, c = m^2 + n^2 $$
to be prime. Taking $m<n$ WLOG, this means $a = 2m + 1, c = 2(m)(m+1) + 1$ are both prime. There are many examples of this with small $m$:
$$ m = 1, 2m+1 = 3, 2(m)(m+1) + 1 = 5 $$
$$ m = 2, 2m+1 = 5, 2(m)(m+1) + 1 = 13 $$
$$ m = 5, 2m+1 = 11, 2(m)(m+1) + 1 = 61 $$
$$ m = 9, 2m+1 = 19, 2(m)(m+1) + 1 = 181 $$
but these occurrences get sparser as $m$ increases. Are there infinitely many such triples?
Every primitive Pythagorean triple has two odd values and one even value.
Every Pythagorean triple has one side that's a multiple of 5.
There are a few triples like 20,21,29 and 11,60,61 where the even factor is the multiple of 5. That may be a good place to start.
– Leonidas Lanier Sep 15 '23 at 19:49