--- from: http://rosettacode.org/wiki/Hamming_numbers note: Prime Numbers