Doubt in Prime Factorization using seive

I’m not getting the factorize function. Request you to please walk me through the steps. Thanks in advance!

Hey @gambhirrahul0