Actually perform all checks in 2fa

This commit is contained in:
Lonami Exo
2018-12-24 14:16:50 +01:00
parent a623006ea0
commit d2ac7e5b0a
3 changed files with 12 additions and 5 deletions

View File

@@ -47,7 +47,8 @@ class Factorization:
if g > 1:
break
return g, pq // g
p, q = g, pq // g
return (p, q) if p < q else (q, p)
@staticmethod
def gcd(a, b):