We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e178af4 commit 42b4444Copy full SHA for 42b4444
maths/prime_numbers.py
@@ -65,5 +65,6 @@ def primes(max: int) -> Generator[int, None, None]:
65
66
# Let's benchmark them side-by-side...
67
from timeit import timeit
68
+
69
print(timeit("slow_primes(1_000_000)", setup="from __main__ import slow_primes"))
70
print(timeit("primes(1_000_000)", setup="from __main__ import primes"))
0 commit comments