-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1 is not a prime #5
Comments
Issue is still there. |
Fixed |
Hi, this issue is not fixed yet. |
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey there,
I think I found a bug in your code were
from primePy import primes
print(primes.check(1))
returns True were it should return False instead.
I suggest changing this line
from
if num==2 or num%2==0:
to
if num == 1 or num==2 or num%2==0:
The text was updated successfully, but these errors were encountered: