I've always seen this one written as "there are 10 types of people in this world..." yours doesn't really make any sense relative to the joke, because 25 is 0x19 hex, 031 octal, and 11001 binary.
on the other hand, there are actually two types of people: those who can extrapolate from incomplete data.