make prime_field inverse compile