From 2019348cbcab843d7373c1beddd1b106e5ffccc5 Mon Sep 17 00:00:00 2001 From: Kamil <32775019+quant12345@users.noreply.github.com> Date: Tue, 10 Oct 2023 20:31:29 +0500 Subject: [PATCH] Update carmichael_number.py --- maths/carmichael_number.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maths/carmichael_number.py b/maths/carmichael_number.py index 1e32cce49e18..08b5c70e8fe7 100644 --- a/maths/carmichael_number.py +++ b/maths/carmichael_number.py @@ -47,7 +47,7 @@ def is_carmichael_number(n: int) -> bool: >>> is_carmichael_number(5.1) Traceback (most recent call last): ... - ValueError: Number 5.1 must instead be a positive intege + ValueError: Number 5.1 must instead be a positive integer >>> is_carmichael_number(-7) Traceback (most recent call last): @@ -57,7 +57,7 @@ def is_carmichael_number(n: int) -> bool: >>> is_carmichael_number(0) Traceback (most recent call last): ... - ValueError: Number 0 must instead be a positive intege + ValueError: Number 0 must instead be a positive integer """ if n <= 0 or not isinstance(n, int):