11609 - 231001_10/16_quiz1-2
|
Time |
Memory |
| Case 1 |
1 sec |
32 MB |
| Case 2 |
1 sec |
32 MB |
| Case 3 |
1 sec |
32 MB |
| Case 4 |
1 sec |
32 MB |
| Case 5 |
1 sec |
32 MB |
Description
Prime factorization: 質因數分解
Input a positive integer n>1, and print all the prime factors of n, including the same prime factors.
Attention: 1 is not a prime
Input
A positive integer n>1
Output
Output: All the prime factors, including the same prime factors, and print from the small prime to the big prime.
Output format:
-
There is a space after each factor, including the last factor.
-
Change a new line at the end.
Tags