121 = 11 * 11 would be the first non-prime listed as prime by your code.
So your code is only a solution up to n = 120.
I.e.: No.
3
solved Is this a good approach for finding number of prime numbers within a certain range? [closed]
121 = 11 * 11 would be the first non-prime listed as prime by your code.
So your code is only a solution up to n = 120.
I.e.: No.
3
solved Is this a good approach for finding number of prime numbers within a certain range? [closed]