Type: Default 1000ms 256MiB

质因数分解

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

已知正整数n是两个不同的质数的乘积,试求出较大的那个质数。

Input Format

输入只有一行,包含一个正整数 n。

对于60%的数据,$6 ≤ n ≤ 1000$。

对于100%的数据,$6 ≤ n ≤ 2×10^9$。

Output Format

输出只有一行,包含一个正整数 p,即较大的那个质数。

21

7

2025-11-1周训练

Not Attended
Status
Done
Rule
XCPC
Problem
9
Start at
2025-11-1 13:45
End at
2025-11-1 16:45
Duration
3 hour(s)
Host
Partic.
50