Skip to content
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

Negative numbers should not be prime #1236

Merged

Conversation

MasterDuke17
Copy link
Contributor

but mp_prime_is_prime() doesn't check for that.

NQP builds ok and passes make m-test and Rakudo builds ok and passes make m-test m-spectest. Now say is-prime(-2) returns False.

but mp_prime_is_prime() doesn't check for that.
@jnthn jnthn merged commit 0dd1364 into MoarVM:master Feb 8, 2020
@MasterDuke17 MasterDuke17 deleted the negative_numbers_should_not_be_prime branch February 8, 2020 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants