Enum TestNumberNature

    • Enum Constant Detail

      • RANDOM_COMPOSITES

        public static final TestNumberNature RANDOM_COMPOSITES
        Arbitrary random composite numbers N chosen from a certain bit length. Note that there are no such numbers with less than 3 bits.
      • RANDOM_ODD_COMPOSITES

        public static final TestNumberNature RANDOM_ODD_COMPOSITES
        Random odd composite numbers N chosen from a certain bit length. Note that there are no such numbers with less than 4 bits.
      • MODERATE_SEMIPRIMES

        public static final TestNumberNature MODERATE_SEMIPRIMES
        Odd semiprimes N=a*b with min(a,b) >= cbrt(N). Note that there are no such numbers with less than 4 bits.
      • QUITE_HARD_SEMIPRIMES

        public static final TestNumberNature QUITE_HARD_SEMIPRIMES
        Odd semiprimes N=a*b with bitLength(min(a,b)) == bitLength(N)/2 - 1 bits.
    • Method Detail

      • values

        public static TestNumberNature[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TestNumberNature c : TestNumberNature.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TestNumberNature valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null