Irreducibility and Prime Ideals