@@ -0,0 +1,449 @@
+from problem0005 import product%0Afrom itertools import count, dropwhile%0Afrom math import sqrt%0A%0A%0Adef pythagorean_triplets():%0A    while True:%0A        for c in count(1):%0A            for a in range(1, c//2):%0A                b = sqrt(c*c - a*a)%0A                if b.is_integer():%0A                    yield (a, int(b), c)%0A%0Aif __name__ == '__main__':%0A    target = next(dropwhile(lambda t: sum(t) != 1000, pythagorean_triplets()))%0A    print(product(target))%0A

add problem0009.py