Exemplo n.º 1
0
 /// <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));
 }
Exemplo n.º 2
0
 /// <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));
 }