Wrote spec for handling non-primes.