ZaiRoN's Firefox OS KeygenMe
The check algorithm is really easy but you can spend some time trying to understand it.
(Hint: check routine has been written in c)