Revert "gmodprime"

This reverts commit 1fe8e35fcce43975231c589cc74e90371f696f39.