Project Euler #162: Hexadecimal numbers