The following seems fishy:
``
sage: K.<a> = QuadraticField(-1)
sage: K.factor(13)
(Fractional ideal (-3*a - 2)) * (Fractional ideal (2*a + 3))