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