mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 15:01:08 +00:00
Update primelib.py (#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 <tianyizheng02@gmail.com>
This commit is contained in:
parent
572de4f15e
commit
9adb7ced16
|
@ -51,6 +51,10 @@ def is_prime(number: int) -> bool:
|
||||||
True
|
True
|
||||||
>>> is_prime(10)
|
>>> is_prime(10)
|
||||||
False
|
False
|
||||||
|
>>> is_prime(97)
|
||||||
|
True
|
||||||
|
>>> is_prime(9991)
|
||||||
|
False
|
||||||
>>> is_prime(-1)
|
>>> is_prime(-1)
|
||||||
Traceback (most recent call last):
|
Traceback (most recent call last):
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in New Issue
Block a user