First time here? Check out the FAQ!
answered 2023-05-22 16:17:26 +0100
For the exact value you can use:
sum(log(p) for p in primes_first_n(100))
or for an approximate numerical value:
sum(log(p).n() for p in primes_first_n(100))