Solved problem 9, using Dickson's Method for generating pythagorean triples