mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-19 19:03:02 +08:00
Optimized recursive_bubble_sort (#2410)
* optimized recursive_bubble_sort * Fixed doctest error due whitespace * reduce loop times for optimization * fixup! Format Python code with psf/black push Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@ -12,7 +12,7 @@ smaller than n when n is smaller than 10 million. Only for positive numbers.
|
||||
|
||||
|
||||
def prime_sum(n: int) -> int:
|
||||
""" Returns the sum of all the primes below n.
|
||||
"""Returns the sum of all the primes below n.
|
||||
|
||||
>>> prime_sum(2_000_000)
|
||||
142913828922
|
||||
|
Reference in New Issue
Block a user