Let $n_1,...,n_r$ be positive integers. Consider the group $$G={\bf Z}/n_1 {\bf Z} \times \cdots\times {\bf Z}/n_r {\bf Z}$$ When does a given element $(k_1,\cdots,k_r)$ generate $G$?
Obviously $G$ must be cyclic. For instance if the $n_i$ are pairwise coprime and, for each $i$, $(n_i,k_i)=1$, then $(k_1,\cdots,k_r)$ generates $G$.
Equally obviously, this condition is too strong. Can one weaken it? For instance is it enough to take $(n_1,\cdots,n_r)=1$?
Edit: many good answers, but I must only accept one.

No, you need the $n_{i}$ to be pairwise coprime. If for instance $\gcd(n_{1}, n_{2}) > 1$, then the subgroup $\mathbf{Z}/n_{1} \mathbf{Z} \times \mathbf{Z}/n_{2} \mathbf{Z}$ is not cyclic, so $G$ itself is not cyclic.
The reason is that $\mathbf{Z}/n_{1} \mathbf{Z} \times \mathbf{Z}/n_{2} \mathbf{Z}$ has order $n_{1} n_{2}$, but exponent the lcm of $n_{1}, n_{2}$, which is $$ \frac{n_{1} n_{2}}{\gcd(n_{1}, n_{2})} < n_{1} n_{2}. $$