def isprime(x): #判斷是否為質數
if x==0 or x==1:
return(False)
for num in range(2,x+1):
if (x%num)==0 and int(x/num)>1:
return(False)
return(True)
###############################################################################
for number in range(2,100):
print(str(number)+" = ",end="")
temp=number
start=1
while temp>1:
if isprime(start)==False:
start=start+1
continue
elif temp%start!=0:
start=start+1
continue
elif start==temp:
print(str(start))
temp=temp/start
else:
print(str(start)+" x ",end="")
temp=temp/start
start=1