Solved problem 204 (generalized hamming numbers).