fork(4) download
  1. from fractions import Fraction
  2.  
  3. for a in range(2,5):
  4. for b in range(a,14):
  5. c = 1 / (Fraction(5,7) - Fraction(1,a) - Fraction(1,b))
  6. if c.numerator > 0 and c.denominator == 1:
  7. print(a,b,c)
Success #stdin #stdout 0.05s 10376KB
stdin
Standard input is empty
stdout
2 5 70
2 6 21
2 7 14
3 3 21