Primality test class.