Merge branch 'Juan' of https://github.com/Miranda13/Python into Juan

This commit is contained in:
Juanitoupipou 2024-11-27 16:17:29 +01:00
commit 2a86be1dc9

View File

@ -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)