mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-30 22:23:42 +00:00
Fixes on isprothnumber
This commit is contained in:
parent
2a86be1dc9
commit
45b74616f2
|
@ -84,7 +84,7 @@ def isprothnumber(number: int) -> bool:
|
|||
num -= 1
|
||||
n = 0
|
||||
while num % 2 == 0:
|
||||
num = num / 2
|
||||
num = num // 2
|
||||
n += 1
|
||||
return num < (2**n)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user