I just thought: Since some people will do it with compiled languages and others with interpreted, should we seperate the comparaisons in 2? Shortest code will probably be interpreted, but fastest will be compiled.
May I submit a hardware solution (in an HDL) ?