Skip to content

Commit 9bfc314

Browse files
authored
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 ad217c6. * Added type annotation.
1 parent f159a33 commit 9bfc314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: maths/hardy_ramanujanalgo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import math
55

66

7-
def exact_prime_factor_count(n):
7+
def exact_prime_factor_count(n: int) -> int:
88
"""
99
>>> exact_prime_factor_count(51242183)
1010
3

0 commit comments

Comments
 (0)