Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for isProbablePrime (0.23 seconds)

  1. android/guava/src/com/google/common/math/LongMath.java

       * Returns {@code false} if {@code n} is zero, one, or a composite number (one which <i>can</i> be
       * factored into smaller positive integers).
       *
       * <p>To test larger numbers, use {@link BigInteger#isProbablePrime}.
       *
       * @throws IllegalArgumentException if {@code n} is negative
       * @since 20.0
       */
      @GwtIncompatible // TODO
      public static boolean isPrime(long n) {
        if (n < 2) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 09 23:01:02 GMT 2026
    - 46.8K bytes
    - Click Count (0)
Back to Top