Skip to content

Commit 2375d94

Browse files
quant12345sedatguzelsemme
authored andcommitted
hardy_ramanujanalgo type annotation (TheAlgorithms#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 99425db commit 2375d94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)