We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 941efc3 commit 8776dd6Copy full SHA for 8776dd6
maths/special_numbers/proth_number.py
@@ -63,15 +63,15 @@ def isprothnumber(number: int) -> bool:
63
"""
64
:param number: nth number to calculate in the sequence
65
:return: true if number is a Proth number, false etherwise
66
- >>> proth(5)
+ >>> isprothnumber(5)
67
true
68
- >>> proth(34)
+ >>> isprothnumber(34)
69
false
70
- >>> proth(-1)
+ >>> isprothnumber(-1)
71
Traceback (most recent call last):
72
...
73
ValueError: Input value of [number=-1] must be > 0
74
- >>> proth(6.0)
+ >>> isprothnumber(6.0)
75
76
77
TypeError: Input value of [number=6.0] must be an integer
0 commit comments