Talk:Hamming numbers: Difference between revisions

From Rosetta Code
Content added Content deleted
(→‎Off-by-one error?: new section)
Line 5: Line 5:


Since hamming(1692) = 2^31, the last one before 2^31 is hamming(1691). I changed it in the problem description. --[[User:Dsnouck|Dsnouck]] 08:56, 3 December 2009 (UTC)
Since hamming(1692) = 2^31, the last one before 2^31 is hamming(1691). I changed it in the problem description. --[[User:Dsnouck|Dsnouck]] 08:56, 3 December 2009 (UTC)
: Originally I had the 1691. Tcl had 1690 so I stored all values in an array and found that 1690 was correct. Since I have checked twice, I have reverted your edit, but please check again (as I will tonight). --[[User:Paddy3118|Paddy3118]] 09:09, 3 December 2009 (UTC)

Revision as of 09:09, 3 December 2009

I have a list of references to add, plus another one or two Python algorithms. --Paddy3118 18:40, 2 December 2009 (UTC)

Done. --Paddy3118 21:55, 2 December 2009 (UTC)

Off-by-one error?

Since hamming(1692) = 2^31, the last one before 2^31 is hamming(1691). I changed it in the problem description. --Dsnouck 08:56, 3 December 2009 (UTC)

Originally I had the 1691. Tcl had 1690 so I stored all values in an array and found that 1690 was correct. Since I have checked twice, I have reverted your edit, but please check again (as I will tonight). --Paddy3118 09:09, 3 December 2009 (UTC)