huonw / primal

primal puts raw power into prime numbers.
http://docs.rs/primal/
Apache License 2.0
112 stars 19 forks source link

Fix the limit in find_new_sieving_primes #49

Closed cuviper closed 2 years ago

cuviper commented 2 years ago

Since the high argument is an inclusive bound, we do need to sieve primes where p * p == high, so only break when strictly greater.

Fixes #48.

cuviper commented 2 years ago

bors r+

bors[bot] commented 2 years ago

Build succeeded: