n = int(input('请输入一个任意正整数:')) print('%d=' % n, end='') while n > 1: for i in range(2, int(n ** 0.5 + 1)): if n % i == 0: n = int(n / i) print('%d*' % i, end='') break else: print(n) break