4 ms·
I noticed that as well [1], and rewriting the code to use int64 (and thus cover the entire range) makes the Go code run in 2m40s. Still faster than Ruby, but n
by gnuvince 14y ago
I noticed that as well [1], and rewriting the code to use int64 (and thus cover the entire range) makes the Go code run in 2m40s. Still faster than Ruby, but not as incredible as the author thought it was.
[1] https://news.ycombinator.com/item?id=5586152 https://news.ycombinator.com/item?id=5586152