Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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))