import math
n = int(input())
maxnum = 0
num = 0
start = 2
a = int(math.sqrt(n))
for i in range(2, a + 1):
num = 0
y = n
j = i
while j <= y and (y % j) == 0:
y /= j
num += 1
j += 1
if num > maxnum:
maxnum = num
start = i
if maxnum == 0:
print(1)
print(n)
else:
print(maxnum)
for i in range(start, start + maxnum):
if i == start:
print(i, end="")
else:
print(f'*{i}',end="")
团体程序设计天梯赛-练习集-L1-006连续因子
最新推荐文章于 2024-08-31 21:39:38 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)