Prime-testing code. Because primes are fun!