Change #238840
Category | gcoreutils |
Changed by | Paul Eggert <eggert | @cs.ucla.edu>
Changed at | Thu 10 Jul 2025 02:12:39 |
Repository | git://git.savannah.gnu.org/coreutils.git |
Project | gcoreutils |
Branch | master |
Revision | a76600cda23a95497c8266368d4837ba828aab8e |
Comments
factor: use mpz_probab_prime_p Inspired by a proposal by Torbjörn Granlund in: https://lists.gnu.org/r/coreutils/2025-01/msg00000.html * src/factor.c (mp_prime_p): Use mpz_probab_prime_p rather than doing it by hand, as mpz_probab_prime_p uses Baillie-PSW which is a win. This removes the need for the ret2 label and goto.
Changed files
- src/factor.c