Interesting SO topic on writing a good hash function for ints: https://stackoverflow.com/q/664014/509706 (tricky to handle ints divisible by a common factor)