COMMUTATIVITY WITH ALGEBRAIC IDENTITIES INVOLVING PRIME IDEALS