Type: Default 1000ms 256MiB

因子分解

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

输入一个数,输出其素因子分解表达式。

## Input Format

输入一个整数 n (2≤n<100)。

## Output Format

输出该整数的因子分解表达式。

表达式中各个素数从小到大排列。

如果该整数可以分解出因子a的b次方,当b大于1时,写做 a^b ;当b等于1时,则直接写成a。

```input1 60

```output1
2^2\*3\*5

2026-5-16递归练习

Not Attended
Status
Done
Rule
XCPC
Problem
9
Start at
2026-5-16 13:30
End at
2026-5-16 16:30
Duration
3 hour(s)
Host
Partic.
4