Fermat Primality Test