Compute the sum of all integers a for which the polynomial x^2+ax+10a+2 can be factored over the integers.