Constraint on 2D Array

How to write the constraint to the 2D array of size 4*4, such that

  1. All array element must be consequent prime numbers
  2. All array element must be within range of {7,100}
    Thank you

In reply to Nitin C J:

There are readily available lists of the 22 prime numbers between 7 and 100.

class A;
  parameter bit [7:0] list_of_primes[22] = {...insert list here...};
  rand bit [7:0] array[4][4];
  constraint array_in_list { foreach (array[i,j])
      array[i,j] inside {list_of_primes}; }
endclass