1953: 因子分解
Memory Limit:256 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
输入一个数,输出其素因子分解表达式。
Input
输入一个整数 n (2≤n<100)。
Output
输出该整数的因子分解表达式。表达式中各个素数从小到大排列。如果该整数可以分解出因子a的b次方,当b大于1时,写做 a^b ;当b等于1时,则直接写成a。
Sample Input Copy
60
Sample Output Copy
2^2*3*5