Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 6, 2023
commit 587cdc213d7e4fc8ce29437370a81a66b752c1a1
2 changes: 1 addition & 1 deletion maths/segmented_sieve.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def sieve(n: int) -> list[int]:
if n == 0:
word = f"Number should not be zero n {n}"
raise ValueError(word)

in_prime = []
start = 2
end = int(math.sqrt(n)) # Size of every segment
Expand Down