100 Doors Problem
rosettacode.org