/** * Returns true if x is an element of the field; false otherwise. * * @param x an element of the field * @return true if x is an element of the field; false otherwise. */ public boolean isElement(int x) { return ModMath.isElement(x, p); }