Spoiler alert: This post contains spoilers for Project Euler.
Problem 9

Special Pythagorean Triplet
Approach
We are looking for a Pythagorean triple such that sides .
One way to categorize Pythagorean triples is into primitives and non-primitives. A primitive triple has all three integers co-prime with each other.
E.g., (3, 4, 5) is primitive because the integers share no common factors except for 1.
(6, 8, 10) is not primitive because the integers have a common factor of 2.
Said another way, multiplying the integers of a primitive triple by a common factor will always result in a non-primitive triplet.
This is useful to know because we don't have perform an exhaustive search of all Pythagorean triples. We only need to search through the primitives. And if we find a primitive triplet whose integers sum to a factor of 1,000, then we can just multiply the primitive by said factor.
Example: Imagine we want to find the Pythagorean triple whose integers sum to 36. Since the (3, 4, 5) triplet sums to 12 (which goes into 36 three times), then we can just multiply the (3, 4, 5) triplet by 3.
And so the triplet whose integers sum to 36 is (9, 12, 15).
We can easily solve this problem by hand just by testing the most well known triplets:
40 goes into 1,000 25 times. Which means the triplet we are looking for is:
And the product of those 3 numbers is:
Conclusion
A straightforward problem that doesn't require any coding.