mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
The black formatter is no longer beta (#5960)
* The black formatter is no longer beta
* pre-commit autoupdate
* pre-commit autoupdate
* Remove project_euler/problem_145 which is killing our CI tests
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@@ -82,10 +82,10 @@ def get_primes_squared(max_number: int) -> list[int]:
|
||||
if non_primes[num]:
|
||||
continue
|
||||
|
||||
for num_counter in range(num ** 2, max_prime + 1, num):
|
||||
for num_counter in range(num**2, max_prime + 1, num):
|
||||
non_primes[num_counter] = True
|
||||
|
||||
primes.append(num ** 2)
|
||||
primes.append(num**2)
|
||||
return primes
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user