Showing 1 changed files with 5 additions and 7 deletions
+5 -7
compare
... ...
@@ -122,14 +122,12 @@ def nPrimes(n):
122 122
 def getPrimes(n, ids):
123 123
     a = 0
124 124
     b = 0
125
-    _ids = list(ids)
126
-    for i in range(len(_ids)):
127
-        if n % _ids[i] == 0:
128
-            a = _ids[i]
129
-            b = n / _ids[i]
125
+    for i in ids:
126
+        if n % i == 0:
127
+            a = i
128
+            b = int(n / i)
130 129
             break
131
-
132
-    return a, int(b)
130
+    return a, b
133 131
 
134 132
 # calculate fingerprint
135 133
 def calculate_fingerprints(filename):