The Hall of 20,000 Ceiling Lights
There are 20,000 lights on. A person comes through and pulls the cord on every second light. A third person comes along and pulls the cord on every third light, etc. When someone comes who pulls every 20,000th chain, which lights are on?
Um, only the first light is on; all the others have had their plugs pulled. Obvious, isn't it, or am I missing something?
I mean, I'm all for trying to solve things programmatically, but do we need a program for this?
--
tbone1, YAPS (Yet Another Perl Schlub)
And remember, if he succeeds, so what.
- Chick McGee