F = GF(67) P.= PolynomialRing(F) X = HyperellipticCurve(x^7 + x^3 + x) C = superelliptic(x^7 + x^3 + x, 2) print(X.a_number() == C.a_number())