summaryrefslogtreecommitdiff
path: root/073.py
diff options
context:
space:
mode:
Diffstat (limited to '073.py')
-rw-r--r--073.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/073.py b/073.py
new file mode 100644
index 0000000..4aeb7ab
--- /dev/null
+++ b/073.py
@@ -0,0 +1,14 @@
+
+limit = 12000
+
+fractions = set()
+
+for d in xrange(2, limit+1):
+ start_n = (d+3)/3
+ end_n = d/2
+
+ for n in xrange(start_n, end_n+1):
+ fractions.add(float(n)/d)
+
+print len(fractions)
+