Prime Factorization Using Sieve