a random number generator
how large the resulting prime should be in bits
a positive integer the result should be coprime to
a non-negative number that the result should be equivalent to modulo equiv_mod
the modulus equiv should be checked against
random prime with the specified criteria
Randomly generate a prime