description: YouKn0wWho has an integer sequence a_1, a_2, …, a_n. He will perform the following operation until the sequence becomes empty: select an index i such that 1 ≤ i ≤ |a| and a_i is not divisible by (i + 1), and erase this element from the sequence. Here |a| is the length of sequence a at the moment of operation. Note that the sequence a changes and the next operation is performed on this changed sequence.
  
  For example, if a=[3,5,4,5], then he can select i = 2, because a_2 = 5 is not divisible by i+1 = 3. After this operation the sequence is [3,4,5].
  
  Help YouKn0wWho determine if it is possible to erase the whole sequence using the aforementioned operation.
  
  Input
  
  The first line contains a single integer t (1 ≤ t ≤ 10 000) — the number of test cases.
  
  The first line of each test case contains a single integer n (1 ≤ n ≤ 10^5).
  
  The second line of each test case contains n integers a_1, a_2, …, a_n (1 ≤ a_i ≤ 10^9).
  
  It is guaranteed that the sum of n over all test cases doesn't exceed 3 ⋅ 10^5.
  
  Output
  
  For each test case, print "YES" (without quotes) if it is possible to erase the whole sequence using the aforementioned operation, print "NO" (without quotes) otherwise. You can print each letter in any register (upper or lower).
  
  Example
  
  Input
  
  
  5
  3
  1 2 3
  1
  2
  2
  7 7
  10
  384836991 191890310 576823355 782177068 404011431 818008580 954291757 160449218 155374934 840594328
  8
  6 69 696 69696 696969 6969696 69696969 696969696
  
  
  Output
  
  
  YES
  NO
  YES
  YES
  NO
  
  Note
  
  In the first test case, YouKn0wWho can perform the following operations (the erased elements are underlined): [1, \underline{2}, 3] → [\underline{1}, 3] → [\underline{3}] → [ ].
  
  In the second test case, it is impossible to erase the sequence as i can only be 1, and when i=1, a_1 = 2 is divisible by i + 1 = 2.
solution: // हर हर महादेव
  import java.util.*;
  import java.lang.*;
  import java.io.*;
  import java.text.DecimalFormat;
  
  public final class Solution {
  
      static int inf = Integer.MAX_VALUE;
      static long mod = 1000000000 + 7;
     
      
  
    
   static void ne(Reader sc, BufferedWriter op) throws Exception {
       int n= sc.nextInt();
      //  long k=sc.nextLong();
       long[] arr= new long[n+1];
       for(int i=1;i<=n;i++){
         arr[i]=sc.nextLong();
       }
       long lc=1;
      boolean ff=true;
       for(int i=1;i<=n;i++){
         lc=lcm(lc,i+1);
         if(arr[i]%lc==0){
             ff=false;
             break;
         }    
       }
       if(ff){
           op.write("YES\n");
       }else{
           op.write("NO\n");
       }
     
  
      
  
   }
    
       
  
  
  
    
  
      static long gcd(long a, long b){
          if(a==0) return b;
          return gcd(b%a,a);
      }
      static long lcm(long a, long b){
          return (a*b)/gcd(a,b);
      }
  
      public static void main(String[] args) throws Exception {
          BufferedWriter op = new BufferedWriter(new OutputStreamWriter(System.out));
          // Reader sc = new Reader();
          Reader sc= new Reader();
          int t = sc.nextInt();
          while (t-->0){ne(sc, op);}
          
          // ne(sc,op);
             
                     
          op.flush();
      }
  
      static void print(Object o) {
          System.out.println(String.valueOf(o));
      }
      static int[] toIntArr(String s){
          int[] val= new int[s.length()];
          for(int i=0;i<s.length();i++){
              val[i]=s.charAt(i)-'a';
          }
          return val;
      }
      static void  sort(int[] arr){
          ArrayList<Integer> list= new ArrayList<>();
          for(int i=0;i<arr.length;i++){
              list.add(arr[i]);
  
          }
          Collections.sort(list);
          for(int i=0;i<arr.length;i++){
              arr[i]=list.get(i);
          }
      }
         static void  sort(long[] arr){
          ArrayList<Long> list= new ArrayList<>();
          for(int i=0;i<arr.length;i++){
              list.add(arr[i]);
  
          }
          Collections.sort(list);
          for(int i=0;i<arr.length;i++){
              arr[i]=list.get(i);
          }
      }
  
  }
  
  // return -1 to put no ahed in array
  class pair {
      int xx;
  
      int yy;
  
  
      pair(int xx, int yy ) {
          this.xx = xx;
          this.yy = yy;
      }
  }
  
  
  class sortY implements Comparator<pair> {
      public int compare(pair p1, pair p2) {
          if (p1.yy > p2.yy) {
              return -1;
          } else if (p1.yy == p2.yy) {
              if (p1.xx > p2.xx) {
                  return 1;
              } else if (p1.xx < p2.xx) {
                  return -1;
              }
              return 0;
  
          }
          return 1;
      }
  }
  
  class sortX implements Comparator<pair> {
      public int compare(pair p1, pair p2) {
          if (p1.xx > p2.xx) {
              return 1;
          } else if (p1.xx == p2.xx) {
              if (p1.yy > p2.yy) {
                  return 1;
              } else if (p1.yy < p2.yy) {
                  return -1;
              }
              return 0;
  
          }
          return -1;
      }
  }
  
  class debug {
  
      static void print1d(long[] arr) {
          System.out.println();
          for (int i = 0; i < arr.length; i++) {
              System.out.print(arr[i] + " ");
          }
  
      }
  
      static void print1d(int[] arr) {
          System.out.println();
          for (int i = 0; i < arr.length; i++) {
              System.out.print(arr[i] + " ");
          }
  
      }
  
      static void print1d(boolean[] arr) {
          System.out.println();
          for (int i = 0; i < arr.length; i++) {
              System.out.println(i + "= " + arr[i] + " ");
          }
  
      }
  
      static void print2d(int[][] arr) {
          System.out.println();
          int n = arr.length;
          int n2 = arr[0].length;
          for (int i = 0; i < n; i++) {
              for (int j = 0; j < n2; j++) {
                  System.out.print(arr[i][j] + " ");
              }
              System.out.println();
          }
  
      }
  
      static void print2d(long[][] arr) {
          System.out.println();
          int n = arr.length;
          int n2 = arr[0].length;
          for (int i = 0; i < n; i++) {
              for (int j = 0; j < n2; j++) {
                  System.out.print(arr[i][j] + " ");
              }
              System.out.println();
          }
  
      }
       static void printPair(ArrayList<pair> list) {
          if(list.size()==0){
              System.out.println("empty list");
              return;
          }
         System.out.println();
         for(int i=0;i<list.size();i++){
            System.out.println(list.get(i).xx+"-"+list.get(i).yy);
         }
      }
  
  }
  
  class Reader {
      final private int BUFFER_SIZE = 1 << 16;
      private DataInputStream din;
      private byte[] buffer;
      private int bufferPointer, bytesRead;
  
      public Reader() {
          din = new DataInputStream(System.in);
          buffer = new byte[BUFFER_SIZE];
          bufferPointer = bytesRead = 0;
      }
  
      public Reader(String file_name) throws IOException {
          din = new DataInputStream(new FileInputStream(file_name));
          buffer = new byte[BUFFER_SIZE];
          bufferPointer = bytesRead = 0;
      }
  
      public String readLine() throws IOException {
          byte[] buf = new byte[64]; // line length
          int cnt = 0, c;
          while ((c = read()) != -1) {
              if (c == '\n') {
                  if (cnt != 0) {
                      break;
                  } else {
                      continue;
                  }
              }
              buf[cnt++] = (byte) c;
          }
          return new String(buf, 0, cnt);
      }
  
      public int nextInt() throws IOException {
          int ret = 0;
          byte c = read();
          while (c <= ' ') {
              c = read();
          }
          boolean neg = (c == '-');
          if (neg)
              c = read();
          do {
              ret = ret * 10 + c - '0';
          } while ((c = read()) >= '0' && c <= '9');
  
          if (neg)
              return -ret;
          return ret;
      }
  
      public long nextLong() throws IOException {
          long ret = 0;
          byte c = read();
          while (c <= ' ')
              c = read();
          boolean neg = (c == '-');
          if (neg)
              c = read();
          do {
              ret = ret * 10 + c - '0';
          } while ((c = read()) >= '0' && c <= '9');
          if (neg)
              return -ret;
          return ret;
      }
  
      public double nextDouble() throws IOException {
          double ret = 0, div = 1;
          byte c = read();
          while (c <= ' ')
              c = read();
          boolean neg = (c == '-');
          if (neg)
              c = read();
  
          do {
              ret = ret * 10 + c - '0';
          } while ((c = read()) >= '0' && c <= '9');
  
          if (c == '.') {
              while ((c = read()) >= '0' && c <= '9') {
                  ret += (c - '0') / (div *= 10);
              }
          }
  
          if (neg)
              return -ret;
          return ret;
      }
  
      private void fillBuffer() throws IOException {
          bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);
          if (bytesRead == -1)
              buffer[0] = -1;
      }
  
      private byte read() throws IOException {
          if (bufferPointer == bytesRead)
              fillBuffer();
          return buffer[bufferPointer++];
      }
  
      public void close() throws IOException {
          if (din == null)
              return;
          din.close();
      }
  }
    class MultiTreeSet<E> {
  	TreeMap<E, Integer> freqTreeMap = new TreeMap<E, Integer>();
  	int size;
   
  	public MultiTreeSet() {}
   
  	public MultiTreeSet(Collection<? extends E> c) {
  		for(E element : c)
  			add(element);
  	}
   
  	public int size() {
  		return size;
  	}
      public int disCount(){
          return freqTreeMap.size();
      }
   
  	public void add(E element) {
  		Integer freq = freqTreeMap.get(element);
  		if(freq==null)
  			freqTreeMap.put(element, 1);
  		else
  			freqTreeMap.put(element,freq+1);
  		++size;
  	}
   
  	public void remove(E element) {
  		Integer freq = freqTreeMap.get(element);
  		if(freq!=null) {
  			if(freq==1)
  				freqTreeMap.remove(element);
  			else
  				freqTreeMap.put(element, freq-1);
  			--size;
  		}
  	}
  
   
  	public int get(E element) {
  		Integer freq = freqTreeMap.get(element);
  		if(freq==null)
  			return 0;
  		return freq;
  	}
   
  	public boolean contains(E element) {
  		return get(element)>0;
  	}
      public void print(){
          for(E k : freqTreeMap.keySet()){
              System.out.print(k+"="+freqTreeMap.get(k)+" ");
          }
          System.out.println();
      }
   
  	public boolean isEmpty() {
  		return size==0;
  	}
   
  	public E first() {
  		return freqTreeMap.firstKey();
  	}
   
  	public E last() {
  		return freqTreeMap.lastKey();
  	}
   
  	public E ceiling(E element) {
  		return freqTreeMap.ceilingKey(element);
  	}
   
  	public E floor(E element) {
  		return freqTreeMap.floorKey(element);
  	}
   
  	public E higher(E element) {
  		return freqTreeMap.higherKey(element);
  	}
   
  	public E lower(E element) {
  		return freqTreeMap.lowerKey(element);
  	}
  }
   