Let R be a prime ring, let I be a nonzero ideal of R and let n be a fixed positive integer. We prove that if the characteristic of R is either 0 or a prime p that is greater than 2n, then an additive map d that satisfies d(xn+1)=∑ nj=0xn−jd(x)xj for all x∈I must be a derivation.