From: Robert Feldt Date: 2001-03-10T00:08:39+09:00 Subject: [ruby-talk:12332] ...and the challenge Hi again, Yes I forgot the challenge: Write a nice, fast and small Ruby program for generating the n first numbers in the Hamming sequence defined as "List of all numbers, in ascending order, of the form (2**i)*(3**j)*(5**k) for i,j,k at least 0. It begins like 1 2 3 4 5 6 8 9 10 12 15 16 18 ..." ie. def hamming_seq(n) #... end so that hamming_seq(10) == [1,2,3,4,5,6,8,9,10,12] /Robert