Skip to content

Commit 8776dd6

Browse files
author
Juanitoupipou
committed
Fixes on isprothnumber()
1 parent 941efc3 commit 8776dd6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

maths/special_numbers/proth_number.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ def isprothnumber(number: int) -> bool:
6363
"""
6464
:param number: nth number to calculate in the sequence
6565
:return: true if number is a Proth number, false etherwise
66-
>>> proth(5)
66+
>>> isprothnumber(5)
6767
true
68-
>>> proth(34)
68+
>>> isprothnumber(34)
6969
false
70-
>>> proth(-1)
70+
>>> isprothnumber(-1)
7171
Traceback (most recent call last):
7272
...
7373
ValueError: Input value of [number=-1] must be > 0
74-
>>> proth(6.0)
74+
>>> isprothnumber(6.0)
7575
Traceback (most recent call last):
7676
...
7777
TypeError: Input value of [number=6.0] must be an integer

0 commit comments

Comments
 (0)