Component primality test