Commit 8e73ad38 authored by Julien Palard's avatar Julien Palard Committed by GitHub

Doc: Fix is_prime (GH-9909)

parent c984d20e
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment