Suppose that λ1,…,λ5 are nonzero real numbers,not all of the same sign,satisfying that λ1/λ2 is irrational.Then for any given real number η and ε > 0,the inequality|λ1p1+λ2p22+λ3p33+λ4p44+λ5p55+η|<(max1≤j≤5pjj)-19/756+ε has infinitely many solutions in prime variables p1,…,p5.This result constitutes an im-provement of the recent results.