From dc2f2f06e9d3017bb108630c43b533cf9093f8c7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 27 Nov 2024 15:07:09 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- maths/special_numbers/proth_number.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maths/special_numbers/proth_number.py b/maths/special_numbers/proth_number.py index 3a78f2198..8a5e970ce 100644 --- a/maths/special_numbers/proth_number.py +++ b/maths/special_numbers/proth_number.py @@ -83,8 +83,8 @@ def isprothnumber(number: int) -> bool: num = number num -= 1 n = 0 - while num%2 == 0 : - num = num/2 + while num % 2 == 0: + num = num / 2 n += 1 return num < (2**n)