Switch to using modulus prime algorithm