Fix error in prime_factors:

- Used number instead of num
	when the remaining value is a factor

Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
HeshamTB 2022-10-19 19:56:57 +03:00
parent 8f00e6a45a
commit 8c7bc52d9a
Signed by: Hesham
GPG Key ID: 74876157D199B09E

2
rsa.py
View File

@ -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):