luogu#P10495. 阶乘分解
阶乘分解
Problem Description
Given an integer , factorize the factorial into prime factors. You only need to output and in the form required by the Fundamental Theorem of Arithmetic.
Input Format
An integer .
Output Format
The prime factorization result of , consisting of several lines. Each line contains a pair , meaning there is a term . Output in increasing order of .
5
2 3
3 1
5 1
Hint
Translated by ChatGPT 5