Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to sum the log of the first n primes?

This is a very naive question, and it may not fit the etiquette of the forum.

How do you handle the fact that

log(7) prints out as log(7), and only after expressing it as log(7.0) do you get 1.94591014905531

I would try and generate the sum using the function primes_first_n(n). However, log(primes_first_n(n)) is not a valid expression, and I don't know if it is because of the point about the logarithmic function above, or it is because log cannot be applied to a vectorial expression.