Adopted new convention from template

This commit is contained in:
2022-09-21 20:47:12 +02:00
parent e19c926369
commit 1927e3b009

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python3 #!/usr/bin/env python
""" """
Created on 26 Aug 2017 Created on 26 Aug 2017
@@ -9,8 +9,7 @@ Solution for problem 10 of Project Euler
https://projecteuler.net/problem=10 https://projecteuler.net/problem=10
""" """
import math from utils import list_primes, timeit
from utils import timeit, list_primes
@timeit("Problem 10") @timeit("Problem 10")
@@ -20,11 +19,11 @@ def compute():
Find the sum of all the primes below two million. Find the sum of all the primes below two million.
""" """
ans = sum(list_primes(1_999_999)) ans = sum(list_primes(1_999_999))
return ans return ans
if __name__ == "__main__": if __name__ == "__main__":
print(f"Result for Problem 10 is {compute()}")
print(f"Result for Problem 10: {compute()}")