def check_data(n):
dict={}
for i in range(2,n+1):
if n%i==0 and i!=n:
key=str(i)+':'+str(n//i)
dict[key]=i+n//i
else:
dict[n]=n
return f'最小因数和输出为:{sorted(dict.values())[0]}'
print(check_data(24))