testing prime factors