给定一个整数 $n$ ($2 \le n \le 100000000$)。请编写一个程序,求出使得 $m$ 的阶乘能被 $n$ 整除的最小正整数 $m$。其中,对于正整数 $m$,$m$ 的阶乘是指从 $1$ 到 $m$ 的所有整数的乘积。
输入
输入在文件 factorial.in 中给出。该文件由一行组成,写有一个整数 $n$。
输出
程序需将结果输出到标准输出。请输出仅包含整数 $m$ 的一行。
样例
输入 1
10
输出 1
5
输入 2
12
输出 2
4
给定一个整数 $n$ ($2 \le n \le 100000000$)。请编写一个程序,求出使得 $m$ 的阶乘能被 $n$ 整除的最小正整数 $m$。其中,对于正整数 $m$,$m$ 的阶乘是指从 $1$ 到 $m$ 的所有整数的乘积。
输入在文件 factorial.in 中给出。该文件由一行组成,写有一个整数 $n$。
程序需将结果输出到标准输出。请输出仅包含整数 $m$ 的一行。
10
5
12
4
The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.
This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.
If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.
Guidelines: