Find the product of all positive integers $a$ such that $10^a$ is divisible by $a^3+a^2+a+1$.
Divide $a^3+a^2+a+1$ into two factors.