Merging in 6 year old repo of project euler files
[sandbox] / euler / py / euler-0009.py
1 #!/usr/bin/env python
2
3 from euler import *
4
5 def sum_is_one_thousand(xs):
6     return sum(xs) == 1000
7
8 result = product(first(pythagorean_triplets(), sum_is_one_thousand))
9
10 print result