Fixes on isprothnumber()

This commit is contained in:
Juanitoupipou 2024-11-27 16:28:08 +01:00
parent 45b74616f2
commit 48cd50279c

View File

@ -64,9 +64,9 @@ def isprothnumber(number: int) -> bool:
:param number: nth number to calculate in the sequence
:return: true if number is a Proth number, false etherwise
>>> isprothnumber(5)
true
True
>>> isprothnumber(34)
false
False
>>> isprothnumber(-1)
Traceback (most recent call last):
...