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 a resize() function to Primes<N> that reuses the already computed primes. #59

Open
JSorngard opened this issue Jul 5, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@JSorngard
Copy link
Owner

JSorngard commented Jul 5, 2024

Something like

impl<const N: usize> Primes<N> {
    pub fn resize<const M: usize>(self) -> Primes<M> {
       ... 
    } 
} 
@JSorngard JSorngard added the enhancement New feature or request label Jul 5, 2024
@JSorngard JSorngard changed the title Add a resize() function to Primes<N>that reuses the already computed primes. Add a resize() function to Primes<N> that reuses the already computed primes. Jul 5, 2024
@JSorngard
Copy link
Owner Author

JSorngard commented Jul 28, 2024

May just implement a runtime sieve that starts out with a Primes<N> and then grows as needed.

@JSorngard
Copy link
Owner Author

Working on that in the extending_cache branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant