public static Int32 NextPrime(Int32 x) { while (GlobalMembersUtil.SmallPrimes(x) != 1) { x++; } return(x); }