Constraints of 256 bit prime number?

Hi,can anyone help me in writing constarints for getting a 256 bit random prime number

In reply to arjun@24:

I don’t think the systemverilog constraint can solve big number like that.

In reply to arjun@24:

There is no single equation to test for a prime number. So you can’t do with random constraints for such a large number range.