mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-30 22:23:42 +00:00
Fixes on isprothnumber()
This commit is contained in:
parent
45b74616f2
commit
48cd50279c
|
@ -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):
|
||||
...
|
||||
|
|
Loading…
Reference in New Issue
Block a user