commit | 8e73ad38ab7d218b9ef8976032865928dfad00f1 | [log] [tgz] |
---|---|---|
author | Julien Palard <julien@palard.fr> | Wed Oct 17 08:45:51 2018 +0200 |
committer | GitHub <noreply@github.com> | Wed Oct 17 08:45:51 2018 +0200 |
tree | 646f0b9c955c284ac37a2d6cbf65c93487d09f4b | |
parent | c984d20ec81609aa439ccdb3af5bc35fca0c2112 [diff] [blame] |
Doc: Fix is_prime (GH-9909)
diff --git a/Doc/library/concurrent.futures.rst b/Doc/library/concurrent.futures.rst index 47ca6b3..3890e49 100644 --- a/Doc/library/concurrent.futures.rst +++ b/Doc/library/concurrent.futures.rst
@@ -257,6 +257,10 @@ 1099726899285419] def is_prime(n): + if n < 2: + return False + if n == 2: + return True if n % 2 == 0: return False