New comment by tornaria on void-packages repository https://github.com/void-linux/void-packages/pull/34030#issuecomment-1000804239 Comment: The 27 seems to be a threshold for `mpz_fac_ui()`. Just to be sure, try your gmp library, e.g. ```c #include #include int main() { mpz_t x; mpz_init(x); mpz_fac_ui(x, 26); mpz_out_str(stdout, 10, x); puts(""); mpz_fac_ui(x, 27); mpz_out_str(stdout, 10, x); puts(""); } ``` Here I get ``` $ cc fact.c -lgmp -ofact && ./fact 403291461126605635584000000 10888869450418352160768000000 ```