-->
当前位置:首页 > 题库

PROGRAMMING:Prime factorization

Luz5年前 (2021-05-10)题库452
Write function, output a positive integer prime factorization. The function of the main function is to input several positive integers (greater than 1) and output the prime decomposition of each number. Prime factorization is to write integers into the product of several prime numbers (from small to large).
```
For example:
20=2*2*5
36=2*2*3*3
53=53
```
###Input example:
```in
6 10 24 100 1000 1001 1002001
```
```out
6=2*3
10=2*5
24=2*2*2*3
100=2*2*5*5
1000=2*2*2*5*5*5
1001=7*11*13
1002001=7*7*11*11*13*13
```






answer:If there is no answer, please comment