I heartily agree Ton Hospel's solution is amazing (I DID know the existence of the solution), but it is not the same problem. The main difference comes from the difference between C and Perl (you cannot use crypt() in C unless you sacrifice the portability, and Perl's y/...// will cost more bytes in C), and also from the practicalness (my program filters more invalid words out, reducing false positives a lot). Therefore I believe the direct comparison is meaningless here.