A bound connected with primitive matrices