index
:
projecteuler
trunk
Project Euler solutions
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
001.py
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to '001.py')
-rw-r--r--
001.py
7
1 files changed, 7 insertions, 0 deletions
diff --git a/001.py b/001.py
new file mode 100644
index 0000000..dd1cbc6
--- /dev/null
+++ b/
001.py
@@ -0,0 +1,7 @@
+result = 0
+
+for i in range(1,1000):
+ if i % 3 == 0 or i % 5 == 0:
+ result += i
+
+print result