{"schema_version":1,"metadata":{"branch":"current","release":"7.9","architecture":"amd64","generated_at":"2026-09-09T04:04:41.004595+00:00","source_url":"https://cdn.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/sqlports-7.55.tgz","source_sha256":"fcdbba1b9df747882aa9bab4af20ebec8dac10655069c90f1cd4145c06e1235e","package_count":12031,"source_kind":"sqlports"},"package":{"name":"p5-Math-Prime-Util-0.74","path":"math/p5-Math-Prime-Util","url":"/packages/current/math/p5-Math-Prime-Util/","comment":"utilities related to prime numbers, including fast sieves","homepage":"https://metacpan.org/release/Math-Prime-Util","maintainer":"The OpenBSD ports mailing-list <ports@openbsd.org>","description":"A module for number theory in Perl. This includes prime sieving,\nprimality tests, primality proofs, integer factoring, counts /\nbounds / approximations for primes, nth primes, and twin primes,\nrandom prime generation, and much more.\n\nThis module is the fastest on CPAN for almost all operations it\nsupports. This includes Math::Prime::XS, Math::Prime::FastSieve,\nMath::Factor::XS, Math::Prime::TiedArray, Math::Big::Factors,\nMath::Factoring, and Math::Primality (when the GMP module is\navailable). For numbers in the 10-20 digit range, it is often orders\nof magnitude faster. Typically it is faster than Math::Pari for\n64-bit operations.\n\nAll operations support both Perl UV's (32-bit or 64-bit) and bignums.\nIf you want high performance with big numbers (larger than Perl's\nnative 32-bit or 64-bit size), you should install Math::Prime::Util::GMP\nand Math::BigInt::GMP. This will be a recurring theme throughout\nthis documentation -- while all bignum operations are supported in\npure Perl, most methods will be much slower than the C+GMP alternative.\n\nThe module is thread-safe and allows concurrency between Perl threads\nwhile still sharing a prime cache. It is not itself multi-threaded.\nSee the Limitations section if you are using Win32 and threads in\nyour program. Also note that Math::Pari is not thread-safe (and\nwill crash as soon as it is loaded in threads), so if you use\nMath::BigInt::Pari rather than Math::BigInt::GMP or the default\nbackend, things will go pear-shaped.\n\nTwo scripts are also included and installed by default:\n * primes.pl displays primes between start and end values or\n             expressions, with many options for filtering (e.g.\n             twin, safe, circular, good, lucky, etc.). Use --help\n             to see all the options.\n * factor.pl operates similar to the GNU factor program.\n             It supports bigint and expression inputs.\n","package_architecture":"amd64","stem":"p5-Math-Prime-Util","readme":null,"dependencies":[{"path":"math/p5-Math-Prime-Util-GMP","type":"runtime","package_spec":"STEM->=0.50","url":"/packages/current/math/p5-Math-Prime-Util-GMP/"},{"path":"math/p5-Math-Prime-Util-GMP","type":"test","package_spec":"STEM->=0.50","url":"/packages/current/math/p5-Math-Prime-Util-GMP/"}],"reverse_dependencies":{"count":2,"url":"/packages/data/3b/3bd21f6bedc15b3f5fa9b409d115926df65e28d04c3107fa965ae2b2599c63ba.json"},"categories":["math","perl5"],"flavors":[],"only_for_architectures":[],"not_for_architectures":[]}}
