mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 15:01:08 +00:00
hardy_ramanujanalgo type annotation (#9799)
* Replacing the generator with numpy vector operations from lu_decomposition.
* Revert "Replacing the generator with numpy vector operations from lu_decomposition."
This reverts commit ad217c6616
.
* Added type annotation.
This commit is contained in:
parent
f159a33506
commit
9bfc314e87
|
@ -4,7 +4,7 @@
|
||||||
import math
|
import math
|
||||||
|
|
||||||
|
|
||||||
def exact_prime_factor_count(n):
|
def exact_prime_factor_count(n: int) -> int:
|
||||||
"""
|
"""
|
||||||
>>> exact_prime_factor_count(51242183)
|
>>> exact_prime_factor_count(51242183)
|
||||||
3
|
3
|
||||||
|
|
Loading…
Reference in New Issue
Block a user