OP solved it, closing
This comment is hidden because it contains spoiler information about the solution
Your code is returning True instead of False for those numbers that aren't prime numbers, the tests are ok, your code is wrong.
True
False
OOP? Loops?
Anyway, you can use whatever tool you want, as long as it gets the job done.
Loading collection data...
OP solved it, closing
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Your code is returning
True
instead ofFalse
for those numbers that aren't prime numbers, the tests are ok, your code is wrong.OOP? Loops?
Anyway, you can use whatever tool you want, as long as it gets the job done.