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 c89ecc8 commit 7c648a6Copy full SHA for 7c648a6
project_euler/problem_108/sol1.py
@@ -47,7 +47,7 @@ def find_prime_factorizations(n: int) -> list[dict[int, int]]:
47
[{}, {}, {2: 1}, {3: 1}, {2: 2}, {5: 1}, {2: 1, 3: 1}, {7: 1}]
48
"""
49
primes = find_primes(n)
50
- prime_factorizations = [dict() for _ in range(n + 1)]
+ prime_factorizations = [{} for _ in range(n + 1)]
51
52
for p in primes:
53
for j in range(p, n + 1, p):
0 commit comments