Interface PrimalityTestParamSpec

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static short FERMAT_TEST
      Defines the Fermat probabilistic primality test
      static short MILLER_RABIN_TEST
      Defines the Miller Rabin probabilistic primality test
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      short getRounds()
      Gets the number of rounds to perform primality test.
      short getType()
      Returns the constant defining the primality test to use
    • Field Detail

      • MILLER_RABIN_TEST

        static final short MILLER_RABIN_TEST
        Defines the Miller Rabin probabilistic primality test
        See Also:
        Constant Field Values
      • FERMAT_TEST

        static final short FERMAT_TEST
        Defines the Fermat probabilistic primality test
        See Also:
        Constant Field Values
    • Method Detail

      • getType

        short getType()
        Returns the constant defining the primality test to use
        Returns:
        the primality test type
      • getRounds

        short getRounds()
        Gets the number of rounds to perform primality test.
        Returns:
        number of testing rounds