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