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

Indefinite prime sieve #164

Closed
wants to merge 2 commits into from
Closed

Indefinite prime sieve #164

wants to merge 2 commits into from

Conversation

tfpf
Copy link
Owner

@tfpf tfpf commented Sep 21, 2024

Serves to document my first attempt at implementing an indefinite prime sieve. Inspired by this Stack Overflow question.

Benchmarks indicate that my sieve of Atkin implementation is way faster than this implementation when both are executed up to a definite upper bound.

     Running benches/benches.rs (target/release/deps/benches-4a4f39c75b2fd568)
sieve_of_atkin          time:   [732.33 µs 733.87 µs 735.51 µs]
primes                  time:   [16.117 ms 16.137 ms 16.160 ms]

@tfpf tfpf closed this Sep 21, 2024
@tfpf tfpf deleted the indefinite-sieve branch September 21, 2024 13:32
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.

1 participant