Prime-valued sum (source code)

= Prime-valued sum

A sum whose resulting value is a <prime number>. This is a condition on the value, rather than a requirement that the summation index run over <prime numbers>. Counting subsets with a prime-valued sum can use <subset sum> counts followed by a <primality> filter on the possible totals.