Add better and faster solution for prime factorization