For an integer $n,$ let $f(n)$ be the remainder when $n^8 + n^{16}$ is divided by $5.$ Compute $f(0) + f(1) + f(2) + f(3) + f(4).$