/// <summary> /// Whether the current instance is prime. /// </summary> /// <param name="n">The current instance.</param> /// <returns>Whether the current instance is prime.</returns> public static bool IsPrime(this BigInteger n) { return(BagMath.IsPrime(n)); }
/// <summary> /// Whether the current instance is prime. /// </summary> /// <param name="n">The current instance.</param> /// <returns>Whether the current instance is prime.</returns> public static bool IsPrime(this long n) { return(BagMath.IsPrime(n)); }