The first tutor will flip switches:
$$\begin{pmatrix}1&1&1&1&1&1&1&1&\ldots\end{pmatrix}$$
The second tutor will flip switches:
$$\begin{pmatrix}0&1&0&1&0&1&0&1&\ldots\end{pmatrix}$$
The third, fourth, ..., eighth will flip switches:
$$\begin{pmatrix}
0&0&1&0&0&1&0&0&\ldots\\
0&0&0&1&0&0&0&1&\ldots\\
0&0&0&0&1&0&0&0&\ldots\\
0&0&0&0&0&1&0&0&\ldots\\
0&0&0&0&0&0&1&0&\ldots\\
0&0&0&0&0&0&0&1&\ldots\\
\end{pmatrix}$$
The column sum of which is the $\sigma_0(n)$ function (number of divisors):
$$\begin{pmatrix}
1&2&2&3&2&4&2&4&\ldots\\
\end{pmatrix}$$
So, when $\sigma_0(n)$ is odd, the light is on, when even, off; but $\sigma_0(n)$ is only odd when $n$ is a square number (because only then you can not pair every divisor).
The total number of on-lights from initial $n$ bulbs, is $$\sum_{k=0}^{k=n}(\sigma_0(k)\mod 2) = \lfloor\sqrt{n}\rfloor$$
So
- Light 25 is on (square: $\sigma_0(25) = 3$)
- Light 93 is off (non-square: $\sigma_0(93) = 4$)
- Light 576 is on (square: $\sigma_0(576) = 21$)
- There are 31 lights that are on ($\lfloor\sqrt{1000}\rfloor = 31$)