Pythagorean Triplets Generate Pythagorean triplets based on constraints (perimeter at the moment). This is a brute force approach. More elegant (and probably efficient) solutions exist.