CMIMC 2022 Team Problem 5

For any integer a, let f(a)=\left|a^{4}-36 a^{2}+96 a-64\right|. What is the sum of all values of f(a) that are prime?