You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, in module primes.py, in line 3:
instead of range(2, int(n**0.5)) should be probably: range(2, int(n**0.5)+1)
Not that I knew it, I just checked other codes on internet :)
And also the function should probably check if n > 1.
This function
python-essential-training-2449125/exercise_files/11_02_e/primes.py
Line 2 in 8697180
returns True for the numbers 4, 6 and 8 despite that those are not prime numbers
The text was updated successfully, but these errors were encountered: