mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08: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:
@ -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
|
||||
|
Reference in New Issue
Block a user