brute force solution to the integer right angle problem (39)