We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a05f9a4 commit 28dfdb6Copy full SHA for 28dfdb6
project_euler/problem_095/sol1.py
@@ -61,7 +61,7 @@ def generate_primes(num: int) -> list[int]:
61
for j in range(start=i * i, stop=num + 1, step=i)
62
are_primes[j] = False
63
64
- return [prime for prime, is_prime in enumerate(are_primes_ if is_prime]
+ return [prime for prime, is_prime in enumerate(are_primes) if is_prime]
65
66
67
def multiply(chain, primes, prime, prev_n, n_max, prev_sum, primes_d):
0 commit comments