#P2043. 质因子分解
质因子分解
Description
Perform the prime factorization of .
Input Format
The input consists of a single line containing a positive integer , with .
Output Format
Output multiple lines. Each line contains two positive integers and , separated by a single space, indicating that contains copies of the prime factor . Output them in increasing order of .
10
2 8
3 4
5 2
7 1
Hint
$10! = 3628800 = (2^8) \times (3^4) \times (5^2) \times 7$.
Translated by ChatGPT 5
京公网安备 11011102002149号