Open tdulcet opened 4 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
GNU factor supports numbers up to 2127 - 1 if compiled without the GNU Multiple Precision (GMP) library or arbitrary-precision numbers if compiled with it.
As of GNU Coreutils 9.0, it is no longer possible to compile GNU factor without the GMP library, which makes this issue even more important (source):
expr and factor now support bignums on all platforms.
The change was made in https://github.com/coreutils/coreutils/commit/13046444888a7e96f48d28fdd5a6ffe03d4ab036.
The current factor implementation only supports numbers up to 264 - 1. GNU factor supports numbers up to 2127 - 1 if compiled without the GNU Multiple Precision (GMP) library or arbitrary-precision numbers if compiled with it. This can be tested by running this command:
which is
factor
263 - 1, 264 - 1, 2127 - 1 and 2128 - 1.GNU factor without GMP produces:
GNU factor with GMP produces:
and uutils' factor produces:
This was first posted in https://github.com/uutils/coreutils/issues/1456#issuecomment-647456945. Issue created at the request of @nbraud.