mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Doc: Fix is_prime (GH-9909)
This commit is contained in:
parent
c984d20ec8
commit
8e73ad38ab
1 changed files with 4 additions and 0 deletions
|
@ -257,6 +257,10 @@ ProcessPoolExecutor Example
|
|||
1099726899285419]
|
||||
|
||||
def is_prime(n):
|
||||
if n < 2:
|
||||
return False
|
||||
if n == 2:
|
||||
return True
|
||||
if n % 2 == 0:
|
||||
return False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue