From 90536fd602216ee3fc43edd89adbecc65f1bcc1a Mon Sep 17 00:00:00 2001 From: Shadi Shadab <46791602+ShadiShadab@users.noreply.github.com> Date: Fri, 10 Jan 2025 15:30:26 +0200 Subject: [PATCH] Update Count-Prime-Numbers.py --- solutions/Count-Prime-Numbers.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/solutions/Count-Prime-Numbers.py b/solutions/Count-Prime-Numbers.py index 107050687..4646eb6c7 100644 --- a/solutions/Count-Prime-Numbers.py +++ b/solutions/Count-Prime-Numbers.py @@ -11,7 +11,6 @@ Author: Zeinab Shadabshoar """ - def is_prime(n: int) -> bool: """ Checks if a given number is prime. @@ -41,7 +40,6 @@ def is_prime(n: int) -> bool: return False return True - def count_primes(numbers: list) -> int: """ Counts the number of prime numbers in a list. @@ -70,7 +68,7 @@ def count_primes(numbers: list) -> int: return prime_count - # Example usage numbers = [25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40] print("Number of prime numbers:", count_primes(numbers)) +