write a constraint to generate prime numbers between the range of 1 to 100?
Take a look at this previous question:
https://verificationacademy.com/forums/systemverilog/prime-numbers-constraint
This example also has a scecondary contraint that the number must contain a 7, which you would not need.