mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-31 06:33:44 +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
|
:param number: nth number to calculate in the sequence
|
||||||
:return: true if number is a Proth number, false etherwise
|
:return: true if number is a Proth number, false etherwise
|
||||||
>>> isprothnumber(5)
|
>>> isprothnumber(5)
|
||||||
true
|
True
|
||||||
>>> isprothnumber(34)
|
>>> isprothnumber(34)
|
||||||
false
|
False
|
||||||
>>> isprothnumber(-1)
|
>>> isprothnumber(-1)
|
||||||
Traceback (most recent call last):
|
Traceback (most recent call last):
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in New Issue
Block a user