That's true, hehe... My first solution was very similar to yours, then I tried to improve it and took a paper and a pen, I was trying to extract a rule to determine the amount of divisors of a given number. In this problem, we will have ON at the end all those bulbs tagged with a number that has an odd amount of divisors (whatever they are).
In most cases, a number has an even number of divisors, because they are grouped in multiplications.
For instance, the number 50:
1x50; 2x25; and 5x10;
We have 3 multiplications, then, we have 6 divisors.
The perfect squares have an integer square root, so, we have an even number of multiplication factors but one of those multiplications is formed by only one number mutiplied by itself. Then, a perfect square will always have an odd number of divisors, and will remain ON at the end of this problem :-)
Consider 100:
1x100 (we should switch the bulb on day 1 and 100)
2x50 (two more swtchings)
4x25 (two more)
5x20 (two more)
10x10 (one more, the square root)
Number 100 has 9 divisors.
Tomorrow a new puzzle, cheers! :-)