diff --git a/euler0XX/euler071.py b/euler0XX/euler071.py new file mode 100644 index 0000000..f440f82 --- /dev/null +++ b/euler0XX/euler071.py @@ -0,0 +1,7 @@ +max_fraction, numerator = 0, 0 +for d in range(2, 1_000_001): + for n in range(ceil(d * max_fraction), int(3 * d / 7)): + if gcd(n, d) == 1: + max_fraction = n / d + numerator = n +print(numerator)