Integer factorization

Find the last three digits of the sum of all positive integers $$n<1000,$$ such that the polynomial $$f_n(x)=x^4+n$$ is a product of two non-constant polynomials with integer coefficients.

×