mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-07 10:00:55 +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 = number
|
||||||
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