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 f15758c02696fee56c0639ce271de98891adc972
5 changes: 3 additions & 2 deletions maths/segmented_sieve.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ def sieve(n: int) -> list[int]:
"""

if n <= 0 or isinstance(n, float):
word = (f"Number must be positive and integer and"
f" not equal to 0, obtained {n}")
word = (
f"Number must be positive and integer and" f" not equal to 0, obtained {n}"
)
raise ValueError(word)

in_prime = []
Expand Down