In this solution which was shown in the video, on line 12th why are we doing n%primes[i] and not n%i ??
As we have to check from 2 till sqrt(n) so why are we not doing n%i that is checking with every number till sqrt(n) and doing n%primes[i] that is only checking by prime numbers!?