From 54a7ed07b500190bbd3a9262a2550e71dd6cc398 Mon Sep 17 00:00:00 2001 From: Allber Fellype <133912146+JamesStewart314@users.noreply.github.com> Date: Wed, 11 Dec 2024 20:42:55 -0300 Subject: [PATCH] =?UTF-8?q?Remo=C3=A7=C3=A3o=20de=20vari=C3=A1veis=20aleat?= =?UTF-8?q?=C3=B3rias=20desnecess=C3=A1rias?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- desafio-11/JamesStewart-314/python/solution.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/desafio-11/JamesStewart-314/python/solution.py b/desafio-11/JamesStewart-314/python/solution.py index 3303cb3a1..44df8f2d4 100644 --- a/desafio-11/JamesStewart-314/python/solution.py +++ b/desafio-11/JamesStewart-314/python/solution.py @@ -6,8 +6,7 @@ def get_set_primes(num_digits: int, upper_limit: int) -> set[str]: primes_set: set[str] = set() - current_num: str = '2' - primes_set.update(current_num.zfill(z_qty) for z_qty in range(1, num_digits)) + primes_set.update('2'.zfill(z_qty) for z_qty in range(1, num_digits)) sieve_dict: dict[int, int] = {} num_counter: count = count(start=3, step=2) for current_num in num_counter: