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

Optimise ml_isPrime #29

Open
oyeb opened this issue May 6, 2016 · 0 comments
Open

Optimise ml_isPrime #29

oyeb opened this issue May 6, 2016 · 0 comments

Comments

@oyeb
Copy link
Member

oyeb commented May 6, 2016

@Manoaj1809:
Optimise the function, think about when the loop will end.
Read about the Sieve of Erastothenes. Do you think it would be useful to implement that here?
There are many advanced primality tests, you may find them interesting. Perhaps for liquid all we need is a clever balance between stored primes (in some map?) and an algorithm which can determine primality beyond the map.
What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant