Class SquFoF63
java.lang.Object
de.tilman_neumann.jml.factor.FactorAlgorithm
de.tilman_neumann.jml.factor.squfof.SquFoF63
public class SquFoF63 extends FactorAlgorithm
Shanks' SQUFOF algorithm, 63-bit version.
Implemented according to http://en.wikipedia.org/wiki/Shanks'_square_forms_factorization. Final choice with self-initialization of parameters. Stopping criterion: after a maximum number of iterations.
Implemented according to http://en.wikipedia.org/wiki/Shanks'_square_forms_factorization. Final choice with self-initialization of parameters. Stopping criterion: after a maximum number of iterations.
-
Field Summary
Fields inherited from class de.tilman_neumann.jml.factor.FactorAlgorithm
NUM_PRIMES_FOR_31_BIT_TDIV, tdivLimit -
Constructor Summary
Constructors Constructor Description SquFoF63() -
Method Summary
Modifier and Type Method Description longfindSingleFactor(long N)java.math.BigIntegerfindSingleFactor(java.math.BigInteger N)Find a factor of the given composite N. Warning: This method will not return when called with a prime argument.java.lang.StringgetName()static voidmain(java.lang.String[] args)Test.protected java.math.BigIntegertest(long Q_ip1)Methods inherited from class de.tilman_neumann.jml.factor.FactorAlgorithm
factor, factor, getDefault, searchFactorsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SquFoF63
public SquFoF63()
-
-
Method Details
-
getName
public java.lang.String getName()- Specified by:
getNamein classFactorAlgorithm- Returns:
- The name of the algorithm, possibly including important parameters.
-
findSingleFactor
public long findSingleFactor(long N) -
findSingleFactor
public java.math.BigInteger findSingleFactor(java.math.BigInteger N)Find a factor of the given composite N. Warning: This method will not return when called with a prime argument.- Specified by:
findSingleFactorin classFactorAlgorithm- Parameters:
N- composite integer- Returns:
- factor of N
-
test
protected java.math.BigInteger test(long Q_ip1) -
main
public static void main(java.lang.String[] args)Test.- Parameters:
args- ignored
-