Kindly check where I am going wrong

I used the hint video approach for the problem number of divisors

numbers are upto 10^6 but you are running sieve upto 10^4