I was asked this question, and i just figured that some of those who like enigmas would try to solve this one too.

So, here it is:
you've got 100 lights related to 100 switches, numbered from 1 to 100, each light being switched off at the beginning. Then are coming, one after the other, 100 men. The first one switches all the lights.
The second one (after the 1st) switches all the lights which are a multiple of two. As a result, after him, 50 lights are on, 50s are off.
The third one (after the first two men) does the same with all the lights whose number is a multiple of 3.
And so on until the 100th man, who only switches the last light, as expected.

The question is: After the coming of the last man, how many lights are on?