mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-12 04:18:08 +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
|
num -= 1
|
||||||
n = 0
|
n = 0
|
||||||
while num % 2 == 0:
|
while num % 2 == 0:
|
||||||
num = num / 2
|
num = num // 2
|
||||||
n += 1
|
n += 1
|
||||||
return num < (2**n)
|
return num < (2**n)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user