From d3b674a2e041690e7479b3d71182e44bbe593e06 Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Sat, 14 Oct 2023 21:55:32 +0200 Subject: [PATCH] autopushed --- bin/prime.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/prime.py b/bin/prime.py index 355889050..88dd9a620 100755 --- a/bin/prime.py +++ b/bin/prime.py @@ -28,7 +28,6 @@ def is_prime(n): break # If this is a known composite, then we've already crossed off its multiples when we iterated over its primes. if not is_prime[i]: - LOG.append(f"[[{i*j}]] is composite: {i} * {j}.") continue # for j in range(2, math.ceil(math.sqrt(n) + 1)): for j in range(2, n): @@ -40,7 +39,7 @@ def is_prime(n): is_prime[i*j] = False except IndexError: continue - print_sieve(is_prime) + echo_sieve(is_prime)) return is_prime[n] class AgoraCmd(click.Command):