Adopted new convention from template
This commit is contained in:
parent
e19c926369
commit
1927e3b009
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python
|
||||
"""
|
||||
Created on 26 Aug 2017
|
||||
|
||||
@ -9,8 +9,7 @@ Solution for problem 10 of Project Euler
|
||||
https://projecteuler.net/problem=10
|
||||
"""
|
||||
|
||||
import math
|
||||
from utils import timeit, list_primes
|
||||
from utils import list_primes, timeit
|
||||
|
||||
|
||||
@timeit("Problem 10")
|
||||
@ -20,11 +19,11 @@ def compute():
|
||||
|
||||
Find the sum of all the primes below two million.
|
||||
"""
|
||||
|
||||
ans = sum(list_primes(1_999_999))
|
||||
|
||||
return ans
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
print(f"Result for Problem 10: {compute()}")
|
||||
print(f"Result for Problem 10 is {compute()}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user