On the factorization of x2+D