因子分解


Submit solution

Points: 10
Time limit: 1.0s
Memory limit: 4M

Author:
Problem type
Allowed languages
C++

因子分解

题目 2967: 因子分解

题目描述

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

输入格式

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

输出格式

输出该整数的因子分解表达式。 表达式中各个素数从小到大排列。 如果该整数可以分解出因子a的b次方,当b大于1时,写做 a^b ;当b等于1时,则直接写成a。

样例输入

60

样例输出

2^235


Comments

There are no comments at the moment.