It is shown in this article that if R is a prime nonassociative ring with a derivation d such that d(superscript n)(R) is contained in the nucleus and d(superscript 3n-2)(R)+d(superscript 3n-2)(R)R=d(superscript 3n-2)(R)+Rd(superscript 3n-2)(R) where n is a fixed positive integer then R is associative or d(superscript 3n-1)=(3n-1)d(superscript 3n-2)=0. This partially generalizes the main result in [3]. Some weaker conditions for the simple nonassociative rings are also considered.