Change reduce function to use prime modulus greater than max number of passwords