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 89887e6 commit 6639f18Copy full SHA for 6639f18
project_euler/problem_136/sol1.py
@@ -44,7 +44,7 @@ def solution(n_limit: int = 50 * 10**6) -> int:
44
"""
45
n_sol = [0] * n_limit
46
47
- for delta in range(1, (n_limit + 1) // 4):
+ for delta in range(1, n_limit // 4 + 1):
48
for y in range(4 * delta - 1, delta, -1):
49
n = y * (4 * delta - y)
50
if n >= n_limit:
0 commit comments