aboutsummaryrefslogtreecommitdiff
path: root/challenge-003/zapwai/python/ch-1.py
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-003/zapwai/python/ch-1.py')
-rw-r--r--challenge-003/zapwai/python/ch-1.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/challenge-003/zapwai/python/ch-1.py b/challenge-003/zapwai/python/ch-1.py
new file mode 100644
index 0000000000..ae6eba52c4
--- /dev/null
+++ b/challenge-003/zapwai/python/ch-1.py
@@ -0,0 +1,10 @@
+N = 1000
+smooth = []
+for i in range(50):
+ for j in range(32):
+ for k in range(22):
+ x = pow(2,i) * pow(3,j) * pow(5,k)
+ if x < N:
+ smooth.append(x)
+smooth.sort()
+print(smooth)