C#, 6251 6335
int H(String s){int h = 733;foreach (char c in s){h = (h * 533 + c);}return h & 0xFFFFFF;}
The constants 533 and 733 889 and 155 give the best score out of all of the ones I've searched so far.
int H(String s){int h = 733;foreach (char c in s){h = (h * 533 + c);}return h & 0xFFFFFF;}
The constants 533 and 733 889 and 155 give the best score out of all of the ones I've searched so far.