I like the concept, it can be a good brain teaser to do the math to see what number you need to input to open the gates.
It goes a little fast though and the gates open a little too slow making the game very challenging, Maybe making a longer path for the bugs to walk down or having them walk slower would make it easier, or better yet, have difficulty settings available.