Skip to content

Commit e2ff349

Browse files
committed
Fix ruff issues
1 parent b9d6fd9 commit e2ff349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project_euler/problem_072/sol1.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def solution(limit: int = 1_000_000) -> int:
4343
ind = np.arange(2 * i, limit + 1, i) # indexes for selection
4444
phi[ind] -= phi[ind] // i
4545

46-
return np.sum(phi[2 : limit + 1])
46+
return int(np.sum(phi[2 : limit + 1]))
4747

4848

4949
if __name__ == "__main__":

0 commit comments

Comments
 (0)