import math all_num = [] num = int(input()) #num保存输入的数字 i = 0 while num != 1: for i in range(2,int(math.sqrt(num))+1): #寻找num的质数因子,只需要除到sqrt(num),不然会超时 if num%i == 0: #如果整除,下一步判断是否质数 flag = 0 for j in range(1,i + 1):#判断i是否为质数 flag = j ...