PrimeSum

Input: PrimeSum(f(p), For(p))
$$\sum_{p} f(p)$$

The sum of $f(p)$ taken over all prime numbers $p$.

Input: PrimeSum(f(p), For(p), P(p))
$$\sum_{P(p)} f(p)$$

The sum of $f(p)$ taken over all prime numbers $p$ satisfying the predicate $P(p)$.

Last updated: 2020-03-06 00:22:16