Documentation Center

  • Trial Software
  • Product Updates


Operate on prime numbers, check and prove primality

MuPAD Functions

isprime Primality test
ithprime I-th prime number
nextprime Next prime number
prevprime Next smaller prime
numlib::checkPrimalityCertificate Test the primality certificate
numlib::Omega Number of prime divisors (with multiplicity)
numlib::pi Number of primes up to a given bound
numlib::proveprime Primality proving using elliptic curves
numlib::primedivisors Prime factors of an integer

Examples and How To

Was this topic helpful?