PrimalityProving`
PrimalityProving`

PrimeQCertificateCheck

PrimeQCertificateCheck[cert,n]

gives True if cert is a valid certificate for the primality or compositeness of n, and False otherwise.

Details and Options

Examples

Basic Examples  (3)

A certificate of primality:

Check:

A certificate of compositeness:

Check:

A certificate need not come from PrimeQCertificate. Here is the certificate generated by PrimeQCertificate for 3837523:

A different certificate asserting that 3837523 is composite:

Check: