Application of theorems on primes to diophantine problems of a special type