What is the time complexity of the code

import java.util.*;
public class Main {
public static void main(String args[]) {

    Scanner scn = new Scanner(System.in);
    int t = scn.nextInt();
    while (t-- > 0) {
        int a = scn.nextInt(), b = scn.nextInt();

        int[] primes = new int[b + 1];
        primes[0] = 0;
        primes[1] = 0;

        for (int i = 2; i <= b; i++) {
            if ((i & 1) == 0 || i < a) {
                primes[i] = 0;
            } else {
                primes[i] = 1;
            }
        }
        if (2 >= a) {
            primes[2] = 1;
        }
        for (int i = 3; i <= b; i += 2) {

            int j = 2;
            while (i * j <= b) {
                primes[i * j] = 0;
                j++;
            }
        }

        int count = 0;
        for (int i = 0; i <= b; i++) {
            if (primes[i] == 1) {
                count++;
            }
        }

        System.out.println(count);
    }
}

}

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.