mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-03 13:28:40 +00:00
New fixes on isprothnumber()
This commit is contained in:
parent
bd59a27685
commit
319b501081
@ -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 :
|
||||||
N = N/2
|
num = num/2
|
||||||
n += 1
|
n += 1
|
||||||
return num < (2**n)
|
return num < (2**n)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user