#!/usr/bin/env python3 # Consider the fraction, n/d, where n and d are positive integers. If n max_: n = j d = i max_ = n / d # Reduce the fractions if it's not already reduced. if gcd(i, j) > 1: n /= gcd(i, j) d /= gcd(i, j) max_n = n print('Project Euler, Problem 71') print(f'Answer: {max_n}') if __name__ == '__main__': p071()