Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auto merge of #17888 : gmfawcett/rust/patch-1, r=alexcrichton
The Sieve algorithm only requires checking all elements up to and including the square root of the maximum prime you're looking for. After that, the remaining elements are guaranteed to be prime.
- Loading branch information