From 6fee5ca0cb91d339b8f0e7256d247123741f6bb0 Mon Sep 17 00:00:00 2001 From: Divya Date: Thu, 14 May 2026 11:20:22 +0530 Subject: [PATCH 1/2] Improved prime check test coverage --- maths/prime_check.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/maths/prime_check.py b/maths/prime_check.py index a757c4108f24..8663ae372615 100644 --- a/maths/prime_check.py +++ b/maths/prime_check.py @@ -88,3 +88,14 @@ def test_not_primes(self): if __name__ == "__main__": unittest.main() + + + + + + +def test_large_prime(self): + assert is_prime(999983) + +def test_large_non_prime(self): + assert not is_prime(999999) \ No newline at end of file From c1fb97bc897113cd807fd262d048d3305f3b99d5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 14 May 2026 05:58:07 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- maths/prime_check.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/maths/prime_check.py b/maths/prime_check.py index 8663ae372615..a10cd6961318 100644 --- a/maths/prime_check.py +++ b/maths/prime_check.py @@ -90,12 +90,9 @@ def test_not_primes(self): unittest.main() - - - - def test_large_prime(self): assert is_prime(999983) + def test_large_non_prime(self): - assert not is_prime(999999) \ No newline at end of file + assert not is_prime(999999)