import math import numpy as np
def f(n):#质因数分解 k=int(math.sqrt(n)) for i in range(2,k+1): while n%i==0: #当i能被n整除时就输出 print("%d"%(i),end=" "); n=n/i;