choose Mersenne prime for hash function