projects
/
sandbox
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merging in stutter
[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