Let $f(x) = x^3 - 7x^2 + 16x - 10$. As $x$ ranges over all integers, find the sum of distinct prime values taken on by $f(x)$.

Let's think step by step and output the final answer within \boxed{}.
user