Some properties of a sequence defined with the aid of prime numbers