My implementation of Fermat's Primality Test for CS312