We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9d6fd9 commit e2ff349Copy full SHA for e2ff349
project_euler/problem_072/sol1.py
@@ -43,7 +43,7 @@ def solution(limit: int = 1_000_000) -> int:
43
ind = np.arange(2 * i, limit + 1, i) # indexes for selection
44
phi[ind] -= phi[ind] // i
45
46
- return np.sum(phi[2 : limit + 1])
+ return int(np.sum(phi[2 : limit + 1]))
47
48
49
if __name__ == "__main__":
0 commit comments