  Let $\eta$ be a quadratic irrationality. The variant of Hua Loo Keng's
problem involving primes such that $a<\{\eta p^2\}<b$, where $a$ and $b$ are
arbitrary real numbers of the interval $(0,1)$, solved in this paper.
