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

sieve_prime_cluster(3,6,8) returns incorrect values #51

Open
trizen opened this issue Dec 23, 2024 · 0 comments
Open

sieve_prime_cluster(3,6,8) returns incorrect values #51

trizen opened this issue Dec 23, 2024 · 0 comments

Comments

@trizen
Copy link
Contributor

trizen commented Dec 23, 2024

There seems to be a minor inconsistency between Math::Prime::Util::sieve_prime_cluster() and Math::Prime::Util::GMP::sieve_prime_cluster() on certain inputs.

Example:

use 5.010;
use Math::Prime::Util qw();
use Math::Prime::Util::GMP qw();

say join(' ', Math::Prime::Util::sieve_prime_cluster(3,6,8));
say join(' ', Math::Prime::Util::GMP::sieve_prime_cluster(3,6,8));

Output:

3 5
5
trizen added a commit to trizen/sidef that referenced this issue Dec 24, 2024
…ive inputs.

- Workaround in Number `prime_cluster()` for small inputs, when `Math::Prime::Util` is not installed. (see: danaj/Math-Prime-Util-GMP#51)
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

No branches or pull requests

1 participant