-
-
Notifications
You must be signed in to change notification settings - Fork 47.1k
Description
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))
)?
Candidates include:
gormih, shivam123-dev, elmiAnass, saipras and moizmoizmoiz