Add primality test
Solution to Problem #7