Skip to content

Commit 319b501

Browse files
author
Juanitoupipou
committed
New fixes on isprothnumber()
1 parent bd59a27 commit 319b501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maths/special_numbers/proth_number.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def isprothnumber(number: int) -> bool :
8484
num -= 1
8585
n = 0
8686
while num%2 == 0 :
87-
N = N/2
87+
num = num/2
8888
n += 1
8989
return num < (2**n)
9090

0 commit comments

Comments
 (0)