Doc: Fix is_prime (GH-9909)
This commit is contained in:
parent
c984d20ec8
commit
8e73ad38ab
|
@ -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…
Reference in New Issue