mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-31 06:33:44 +00:00
Merge branch 'Juan' of https://github.com/Miranda13/Python into Juan
This commit is contained in:
commit
2a86be1dc9
|
@ -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…
Reference in New Issue
Block a user