Skip to content

Commit cf923d9

Browse files
committed
change lcm to static method
1 parent 70c0fed commit cf923d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: MathUtils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ def is_prime(cls, number: int) -> bool:
4141
# Implement later using Rabin-Miller
4242
return isprime(number)
4343

44-
@classmethod
45-
def lcm(cls, a, b):
44+
@staticmethod
45+
def lcm(a, b):
4646
"""
4747
Math.lcm implementation (since not available in 3.8).
4848
:return:

0 commit comments

Comments
 (0)