Skip to content

Commit 6639f18

Browse files
Update sol1.py
1 parent 89887e6 commit 6639f18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: project_euler/problem_136/sol1.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def solution(n_limit: int = 50 * 10**6) -> int:
4444
"""
4545
n_sol = [0] * n_limit
4646

47-
for delta in range(1, (n_limit + 1) // 4):
47+
for delta in range(1, n_limit // 4 + 1):
4848
for y in range(4 * delta - 1, delta, -1):
4949
n = y * (4 * delta - y)
5050
if n >= n_limit:

0 commit comments

Comments
 (0)