public static ArgBase <long> IsPrime(this ArgBase <long> arg) { if (!MathUtil.IsPrime(arg.Value)) { arg.ThrowPrimeValueExpected(); } return(arg); }