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](https://github.com/TheAlgorithms/Python/blob/master/data_structures/hashing/number_theory/prime_numbers.py), etc. Shall we use one common function for that exactly identical `is_prime` calculation (which takes `O(sqrt(n))`)? Candidates include: * [maths/prime_check](https://github.com/TheAlgorithms/Python/blob/master/maths/prime_check.py) * [maths/primelib](https://github.com/TheAlgorithms/Python/blob/master/maths/primelib.py)
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: