fork(1) download
  1. def nwd(a, b):
  2. while b != 0:
  3. pom = b
  4. b = a % b
  5. a = pom
  6. return a
  7.  
  8. def nww(a, b):
  9. pom = nwd(a, b)
  10. return a * b // pom
  11.  
  12. def flamastry(x, y, z):
  13. pom1 = nww(x, y)
  14. pom2 = nww(pom1, z)
  15. return pom2
  16.  
  17. print(flamastry(4, 6, 8))
  18.  
Success #stdin #stdout 0.11s 14124KB
stdin
Standard input is empty
stdout
24