1770: 【基础】分解质因数

Memory Limit:512 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:2 Solved:1

Description

求出区间[a,b]中所有整数的质因数分解。


提示

先筛出所有素数,然后再分解。

数据规模和约定

2<=a<=b<=10000



Input

输入两个整数ab

Output

每行输出一个数的分解,形如k=a1*a2*a3...(a1<=a2<=a3...k也是从小到大的)(具体可看样例)

Sample Input Copy

3 10

Sample Output Copy

3=3
4=2*2
5=5
6=2*3
7=7
8=2*2*2
9=3*3
10=2*5

HINT

【来源】蓝桥杯基础训练