simple primality test