Add API for prime factors