diff --git a/.gitignore b/.gitignore index 3afe388..be81ff5 100644 --- a/.gitignore +++ b/.gitignore @@ -129,4 +129,7 @@ dmypy.json .pyre/ # Vs Code -.vscode/ \ No newline at end of file +.vscode/ + +# IntelliJ +.idea \ No newline at end of file diff --git a/cracker.py b/cracker.py index 0c1cf4e..bccdb83 100644 --- a/cracker.py +++ b/cracker.py @@ -39,7 +39,7 @@ def main(): print("q = %d" % q) print("Factorizing complete.") - phi = (p - 1) * (q - 1) + phi = (p - 1) * (q - 1) if p != q else p * p - p print("phi(n) = %d" % phi)