From 6931af4f20e8865ebf8fe462ecd25095692b2745 Mon Sep 17 00:00:00 2001 From: Haejin Son <53185709+hjson9181@users.noreply.github.com> Date: Wed, 15 Jan 2025 22:40:20 -0500 Subject: [PATCH] Update primes.py --- primes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/primes.py b/primes.py index 7b625e3..b1ce333 100644 --- a/primes.py +++ b/primes.py @@ -31,7 +31,7 @@ def isPrime(n): What condition will d satisfy after the while loop if n is prime? """ Dmax = scipy.sqrt(n) - if n == 2: + if n == 3: return True if isEven(n): return False