mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-03 13:28:40 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
941efc3a38
commit
dc2f2f06e9
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user