Hash table: When is it suitable to use modulo power of 2?
The exact size of the backing array is not that important only that it can hold enough buckets. 

The reason why power of 2 is often used is because this can be implemented as a bitmask instead of a integer divide. Integer divides are pretty slow compared to other operation so they are often avoided by people trying to optimize data structures.