How can I express a sum indexed by primes in Mathematica? Two examples that I am interested in are
(1) where the primes go from $p=2$ to, say, $p=17$.
(2) It would also be useful to have the sum go from $p=2$ to largest prime less than $n$. I know the latter can be estimated using the prime number theorem.