Calculating the Hamming Codex