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:
rtang09 2023-10-19 05:02:04 -07:00 committed by GitHub
parent 572de4f15e
commit 9adb7ced16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):
... ...