Problem 3842 · Easy

Toggle Light Bulbs

Bulbs 1 to 100 start off. Each entry of bulbs flips the bulb with that number; report the bulbs that are on, in increasing order.

Open the interactive visualisation