projects
/
sandbox
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merging in 6 year old repo of project euler files
[sandbox]
/
euler
/
py
/
euler-0001.py
1
#!/usr/bin/env python
2
3
from euler import *
4
5
def divisible_by_three_or_five(dividend):
6
return divisible_by(dividend, 3) or divisible_by(dividend, 5)
7
8
result = sum([n for n in range(1000) if divisible_by_three_or_five(n)])
9
10
print result
11