Browse Source

I think we're getting the right pseudoprimes?

Petra Lamborn 5 years ago
parent
commit
722e767a6d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      bot.py

+ 1
- 1
bot.py View File

@@ -82,7 +82,7 @@ def MillerRabin(n, base):
82 82
 for base in range(2, 16):
83 83
     print("{}:".format(base))
84 84
     for i in range(2, 10000):
85
-        if base > i - 2 or i % 2 == 0:
85
+        if i % 2 == 0 or base % i == 0:
86 86
             continue
87 87
         if MillerRabin(i, base) == (hund_div(i) == 0):
88 88
             print(i, hund_div(i), MillerRabin(i, base))