Skip to content

Optimise ml_isPrime #29

Description

@oyeb

@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?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions