Fixed problem with next_prime(). Someone wrote the bound condition
incorrectly, so the hash table never was expanded beyond 4 million or so, although it was repeatedly cheked.
Authored by: tswift 2017-11-10
Parent: [r9130]
Child: [r9132]