Generate a prime number of the required bitsize (i.e. in the range [2^(b-1)+2^(b-2), 2^b)).
May throw a CryptoError_PrimeSizeInvalid if the requested size is less than 5 bits, as the smallest prime meeting these conditions is 29. This function requires that the two highest bits are set, so that when multiplied with another prime to create a key, it is guaranteed to be of the proper size.