New problem and helper for prime factorization.