Skip to content

Commit 9adb7ce

Browse files
rtang09pre-commit-ci[bot]tianyizheng02
authored
Update primelib.py (TheAlgorithms#10209)
* Update primelib.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Tianyi Zheng <[email protected]>
1 parent 572de4f commit 9adb7ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: maths/primelib.py

+4
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ def is_prime(number: int) -> bool:
5151
True
5252
>>> is_prime(10)
5353
False
54+
>>> is_prime(97)
55+
True
56+
>>> is_prime(9991)
57+
False
5458
>>> is_prime(-1)
5559
Traceback (most recent call last):
5660
...

0 commit comments

Comments
 (0)