+ 2
I need explanation step by step
Calculate about 2 to 200 prime numbers https://code.sololearn.com/wepHltxDyE9F/?ref=app
1 Answer
+ 3
The outer loop (j) causes each number between 2 to 200 to be checked. The inner loop finds the smallest factor (other than one) of each value of j. If it is the same as j, then it is a prime number.