Type: Default 1000ms 128MiB

最大质因子序列

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.

说明

任意输入两个正整数m,n(1 < m < n ≤ 5000),依次输出m到n之间每个数的最大质因子(包括m和n;如果某个数本身是质数,则输出这个数自身)。

输入格式

一行,包含两个正整数m和n,其间以单个空格间隔。

输出格式

一行,每个整数的最大质因子,以逗号间隔。
5 10
5,3,7,2,3,5

来源

信息学奥赛一本通 函数 洛谷

2025-11-09周训练

Not Attended
Status
Done
Rule
XCPC
Problem
10
Start at
2025-11-9 14:00
End at
2025-11-9 17:00
Duration
3 hour(s)
Host
Partic.
26