Home > Back-end > What is this for loop to realize the mathematical meaning?
What is this for loop to realize the mathematical meaning?
Time:10-21
CodePudding user response:
May be judging prime
CodePudding user response:
To judge whether a prime number, if a number can be divided exactly by except 1 integer, then the divisor of the maximum number of half, so you don't need to count from one to the exhaustive calculation, so that we can reduce half of the amount of calculation