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

Add "new with at least n primes" function to Sieve #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wackywendell
Copy link
Contributor

This adds a function to Sieve to create a new Sieve instance that has at least n primes in it, for a given value of n.

This also adds an implementation of Iterator and IntoIterator for Sieve, just for convenience.

As discussed in #3, the name new_at_least is pretty terrible, but I couldn't come up with anything better. I'm hoping for suggestions!

@autohuonw
Copy link
Collaborator

r? @huonw

(rust_highfive has picked a reviewer for you, use r? to override)

@huonw
Copy link
Owner

huonw commented Jul 10, 2015

Woo, thanks.

I haven't come up with any other names I like yet...

@wackywendell
Copy link
Contributor Author

Yes, neither have I. The best I've thought of is new_with_count, which does seem a bit more descriptive, but I'm not sure I like it...

@autohuonw
Copy link
Collaborator

☔ The latest upstream changes (presumably 6806007) made this pull request unmergeable. Please resolve the merge conflicts.

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.

None yet

3 participants