mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-30 02:16:43 +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 ad217c66165898d62b76cc89ba09c2d7049b6448. * Added type annotation.
This commit is contained in:
parent
f159a33506
commit
9bfc314e87
@ -4,7 +4,7 @@
|
||||
import math
|
||||
|
||||
|
||||
def exact_prime_factor_count(n):
|
||||
def exact_prime_factor_count(n: int) -> int:
|
||||
"""
|
||||
>>> exact_prime_factor_count(51242183)
|
||||
3
|
||||
|
Loading…
x
Reference in New Issue
Block a user