Deduplicate repeated is_prime functions
#5434
Labels
Comments
|
Can you assign this to me. |
|
I will do it! |
14 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


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_primecalculation (which takesO(sqrt(n)))?Candidates include:
The text was updated successfully, but these errors were encountered: