Showing posts with label primes. Show all posts
Showing posts with label primes. Show all posts

Wednesday, May 9, 2012

What is a sensible prime for hashcode calculation?


Eclipse 3.5 has a very nice feature to generate Java hashCode() functions. It would generate for example (slightly shortened:)