Skip to content

Commit 5804a98

Browse files
committed
Fix
1 parent 6c1466c commit 5804a98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project_euler/problem_058/sol1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def isprime(n: int) -> int:
5151
if n % 2 == 0 and n > 2:
5252
return 0
5353

54-
i = 2
54+
i = 3
5555
while i * i <= n:
5656
if n % i == 0:
5757
return 0

0 commit comments

Comments
 (0)