Home => ProblemSet => 4.2-07:分解质因数
Problem1305--4.2-07:分解质因数

1305: 4.2-07:分解质因数

Time Limit: 1 Sec  Memory Limit: 128 MB  Submit: 8  Solved: 9
[ Submit ] [ Status ] [ Creator: ][ 参考程序 ]

Description

任意输入一正整数n,用递归求出它的所有质因子。如:10=(2 5);20=(2 2 5)。

Input

输入只有一行,包括1个整数n (1<n<32768 )。

Output

输出若干行,按从小到大的顺序给出这个数的所有质因子,每行一个。

Sample Input Copy

36

Sample Output Copy

2
2
3
3

Source/Category