Unique factorization is a property that is defined up to multiplication by units. 5 and -5 are associates; both are prime. Both generate the same prime ideal in the integers. Best, William