Skip to content

Commit

Permalink
Update carmichael_number.py
Browse files Browse the repository at this point in the history
  • Loading branch information
quant12345 authored Oct 10, 2023
1 parent 41d7d7d commit 2019348
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maths/carmichael_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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):
Expand Down

0 comments on commit 2019348

Please sign in to comment.