# Pratt Certificates of Primality

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram CDF Player or other Wolfram Language products.

Requires a Wolfram Notebook System

Edit on desktop, mobile and cloud with any Wolfram Language product.

A prime number can be proved prime by exhibiting all the prime factors of together with a witness such that but for each prime divisor of . The primes are then proved prime in the same way, except that 2 is assumed to be prime without proof. This recursive construction has a tree structure, which is shown here. These ideas prove that the prime numbers lie in the complexity class NP. If the input number is not prime, the next prime is used.

Contributed by: Stan Wagon (Macalester College) (March 2011)

Open content licensed under CC BY-NC-SA

## Snapshots

## Details

detailSectionParagraph## Permanent Citation

"Pratt Certificates of Primality"

http://demonstrations.wolfram.com/PrattCertificatesOfPrimality/

Wolfram Demonstrations Project

Published: March 7 2011