Every integer greater than 1 can be written as a product of primes in exactly one way, apart from the order of the factors. Write it in the standard form
p₁^e₁ * p₂^e₂ * … * pₖ^eₖ
with the primes in increasing order.
^1.* (a space, an asterisk and a space).For example, 360 = 2^3 * 3^2 * 5 and 3072 = 2^10 * 3, while the prime 23 is written just as 23.
Several lines, each with one integer n (2 ≤ n ≤ 2 147 483 647), until end of file. There are at most 100 lines.
For each n, print its prime factorization in the form above on its own line.
範例輸入 1
360 3072 23
範例輸出 1
2^3 * 3^2 * 5 2^10 * 3 23
Pro 專屬功能: 查看這題在歷屆 CPE 出現過幾次 — 升級以解鎖.