Exemple #1
0
def solve():
    """
    >>> solve()
    142913828922
    """

    primer = CachedPrimer()
    known_primes = primer.primes_up_to(2000000)
    return sum(known_primes)
Exemple #2
0
def solve():
    """
    >>> solve()
    104743
    """

    primer = CachedPrimer()

    primes = primer.primes_up_to(stop_at_n_primes=10001)

    return primes[-1]