Skip to content

Commit 49f4889

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c75ae7a commit 49f4889

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎project_euler/problem_073/sol1.py‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,7 @@ def solution(max_d: int = 12_000) -> int:
7575
for j in range(1, max_d + 1):
7676
prefix[j] = prefix[j - 1] + max(0, (j - 1) // 2 - j // 3)
7777

78-
return sum(
79-
mobius[e] * prefix[max_d // e]
80-
for e in range(1, max_d + 1)
81-
if mobius[e]
82-
)
78+
return sum(mobius[e] * prefix[max_d // e] for e in range(1, max_d + 1) if mobius[e])
8379

8480

8581
if __name__ == "__main__":

0 commit comments

Comments
 (0)