This reminds me of the popular binary bomb lab offered in some computer architecture courses:
http://csapp.cs.cmu.edu/public/labs.html
A couple of years ago I did a (mostly) full walkthrough of the Binary Bomb, and it still gets a lot of hits during the semester. If anyone is curious: http://www.vedranb.com/post/19338235616/phase-1