PariInit(3)

πŸ“¦ version 2.030528, in alpine 3.24

✨ NAME ✨

Okay so bestie, welcome to PariInit(3) β€” a User Contributed Perl Documentation page, and it's lowkey iconic. The main character module is Math::PariInit, and it loads Math::Pari with specified $primelimit and $initmem. That's the whole assignment. πŸ’–

🌸 SYNOPSIS 🌸

use Math::PariInit qw(:DEFAULT :int primes=1.2e7 stack=1e7 prime)
$bigprime = prime(500000);

πŸ¦‹ DESCRIPTION πŸ¦‹

use Math::PariInit takes the same arguments as use Math::Pari, with the addition of :primes=limit and :stack=bytes. These two cuties specify:

  • :primes=limit β€” up to which number the initial list of primes should be precalculated. The prime prep list goes this far, periodt. πŸ‘‘
  • :stack=bytes β€” how large should be the arena for PARI calculations. Big memory arena energy, no cap. πŸ”₯
⚠️ Warning, bestie: the arguments primes and stack cannot be specified if Math::Pari is already loaded. Use setprimelimit() and allocatemem() instead. That's the rule, and we respect it. πŸ’…

πŸ‘‘ AUTHOR πŸ‘‘

Ilya Zakharevich β€” ilyaz@cpan.org. Iconic author behavior, fr fr. 🫢


Cute sign-off: this page comes from perl v5.42.2, dated 2025-11-19, and it's PariInit(3). Bye bestie, go slay your primes! βœ¨πŸ’œ

πŸ“¦ where this page comes from