diff --git a/rsa.py b/rsa.py index 3f07577..e1c0692 100644 --- a/rsa.py +++ b/rsa.py @@ -289,7 +289,7 @@ def prime_factors(number, base): if j != 0: factors.update({i: j}) if num > 2: - factors.update({number: 1}) + factors.update({int(num): 1}) print(factors) def readKeyFile(keyName):