Fermat Primality Test

Using fermat's discovery, a simple implementation.