Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (14 sloc) 405 Bytes
#
# Solution to Project Euler problem 10
# Copyright (c) Project Nayuki. All rights reserved.
#
# https://www.nayuki.io/page/project-euler-solutions
# https://github.com/nayuki/Project-Euler-solutions
#
import eulerlib
# Call the sieve of Eratosthenes and sum the primes found.
def compute():
ans = sum(eulerlib.list_primes(1999999))
return str(ans)
if __name__ == "__main__":
print(compute())