I did a little python script some time ago to solve just problems like this. It is meant to be more educative than fast, though, and doesn't handle non-right angles (like pytaghorean triangles). It turns out that eliminating duplicates is a little tricky: https://github.com/filipezf/BrickEnumeration/blob/main/brick...