Adding exercise for checking primality