fork download
  1. n = int(input())
  2. print(f"{n}=", end="")
  3. first = True
  4. i = 2
  5. while n > 1:
  6. while n % i == 0:
  7. if not first:
  8. print("*", end="")
  9. print(i, end="")
  10. first = False
  11. n //= i
  12. i += 1
Success #stdin #stdout 0.11s 14080KB
stdin
20
stdout
20=2*2*5