From 25e9167e85c6d695a27fab309cee39bb1ee3f9c5 Mon Sep 17 00:00:00 2001 From: t3xhno Date: Tue, 6 Feb 2024 16:15:41 +0100 Subject: [PATCH] Problem9 --- src/problem9.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/problem9.py diff --git a/src/problem9.py b/src/problem9.py new file mode 100644 index 0000000..5a1430c --- /dev/null +++ b/src/problem9.py @@ -0,0 +1,7 @@ +import sys +sys.path.append("lib") +from num_fns import sieve + +primes = [p for p in sieve(10000000) if p < 2000000] + +print(sum(primes))