Priors

Logic and brainteasers · School lockers · difficulty 2 of 5

The locker hallway

A hallway has 100 closed lockers, numbered 1 to 100. Student 1 opens every locker. Student 2 toggles every 2nd locker (closing it if open, opening it if closed), student 3 toggles every 3rd, and so on up to student 100. How many lockers are open at the end?

Answer with an expected value. First lock in a gut guess with an 80% range, then solve it properly, then watch a simulation settle on the truth.

Play it

More logic and brainteaser puzzles

All logic and brainteaser puzzles · All puzzles · Market making game