Problem2293--【入门】任意输入一正整数N,要求把它拆成质因子的乘积。

2293: 【入门】任意输入一正整数N,要求把它拆成质因子的乘积。

[Creator : dinan]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

任意输入一正整数N,求出它的所有质因子。如:10=(2 5);20=(2 2 5)。并求出该整数N有多少个质因子。

Input

输入只有一行,包括1个整数n(n≤105

Output

输出第1行,按题目要求的格式输出n的质因子。
第2行,输出n的质因子的数量。

Sample Input Copy

36

Sample Output Copy

2 2 3 3
4

Source/Category

Please give us a Star @HUSTOJ Github!

欢迎关注微信公众号onlinejudge