- Category:
- CSharp
- Tags:
-
- File Size:
- 9kb
- Update:
- 2016-12-18
- Downloads:
- 0 Times
- Uploaded by:
- 顾亚飞
Description: A positive integer factorization. For example: enter 90, print out 90 2*3*3*5.
Program analysis: the N decomposition of the quality factor, should first find a minimal prime number k, then complete the following steps:
(1) if the prime exactly equal to N, then the prime factor decomposition process has ended, you can print out.
(2) if n<>k, but n is divisible by K, the value of K should be printed, and divided by N K, a positive integer as a new n you,
Repeat the first step.
(3) if n is not divisible by K, with k+1 as the value of K, repeat the first step.
To Search:
File list (Check if you may need any files):
sdf.docx