this is a pretty uninteresting problem in the grand scheme of things... it's a great one for first or second year CS undergrads, but front page of HN for the past week? ..the ACM archive has more interesting problems than this.. or check out a personal favorite-- http://mathpuzzle.com/