Name : perl-Math-Prime-Util-GMP
| |
Version : 0.520.0
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.1.1
| Date : 2024-07-24 22:28:45
|
Group : Unspecified
| Source RPM : perl-Math-Prime-Util-GMP-0.520.0-lp156.1.1.src.rpm
|
Size : 0.67 MB
| |
Packager : https://www_suse_com/
| |
Summary : Utilities related to prime numbers, using GMP
|
Description :
A module for number theory in Perl using GMP. This includes primality tests, getting primes in a range, factoring, and more.
While it certainly can be used directly, the main purpose of this module is for Math::Prime::Util. That module will automatically load this one if it is installed, greatly speeding up many of its operations on big numbers.
Inputs and outputs for big numbers are via strings, so you do not need to use a bigint package in your program. However if you do use bigints, inputs will be converted internally so there is no need to convert before a call. Output results are returned as either Perl scalars (for native-size) or strings (for bigints). Math::Prime::Util tries to reconvert all strings back into the callers bigint type if possible, which makes it more convenient for calculations.
The various \'is_*_pseudoprime\' tests are more appropriately called \'is_*_probable_prime\' or \'is_*_prp\'. They return 1 if the input is a probable prime based on their test. The naming convention is historical and follows Pari, Math::Primality, and some other math packages. The modern definition of pseudoprime is a _composite_ that passes the test, rather than any number.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/15.6/x86_64 |