For each positive integer $n$, let $f(n) = n^4 - 360n^2 + 400$. What is the sum of all values of $f(n)$ that are prime numbers?

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