Project Euler #204: Generalised Hamming Numbers