Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In sieve example, end iteration sooner
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