Prime and Irreducible Ideals in Subtraction Algebras