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
is_prime
We have a lot of is_prime (or similar) functions: https://github.com/TheAlgorithms/Python/search?p=4&q=is_prime, https://github.com/TheAlgorithms/Python/search?q=isPrime, data_structures/hashing/number_theory/prime_numbers, etc. Shall we use one common function for that exactly identical is_prime calculation (which takes O(sqrt(n)))?
O(sqrt(n))
Candidates include:
The text was updated successfully, but these errors were encountered:
Can you assign this to me.
Loading
Sorry, something went wrong.
I will do it!
Hi! I'm interested in working on this
Can I try solve this prob?
poyea
Successfully merging a pull request may close this issue.
We have a lot of
is_prime
(or similar) functions: https://github.com/TheAlgorithms/Python/search?p=4&q=is_prime, https://github.com/TheAlgorithms/Python/search?q=isPrime, data_structures/hashing/number_theory/prime_numbers, etc. Shall we use one common function for that exactly identicalis_prime
calculation (which takesO(sqrt(n))
)?Candidates include:
The text was updated successfully, but these errors were encountered: