Optimized the primality test.