From 8776dd6d0daf20c62559a83d437070cbd47369e5 Mon Sep 17 00:00:00 2001 From: Juanitoupipou Date: Wed, 27 Nov 2024 16:17:25 +0100 Subject: [PATCH] Fixes on isprothnumber() --- maths/special_numbers/proth_number.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/maths/special_numbers/proth_number.py b/maths/special_numbers/proth_number.py index 3a78f2198..d330b8d6d 100644 --- a/maths/special_numbers/proth_number.py +++ b/maths/special_numbers/proth_number.py @@ -63,15 +63,15 @@ def isprothnumber(number: int) -> bool: """ :param number: nth number to calculate in the sequence :return: true if number is a Proth number, false etherwise - >>> proth(5) + >>> isprothnumber(5) true - >>> proth(34) + >>> isprothnumber(34) false - >>> proth(-1) + >>> isprothnumber(-1) Traceback (most recent call last): ... ValueError: Input value of [number=-1] must be > 0 - >>> proth(6.0) + >>> isprothnumber(6.0) Traceback (most recent call last): ... TypeError: Input value of [number=6.0] must be an integer