Class TinyEcm63


  • public class TinyEcm63
    extends FactorAlgorithm
    A port of Ben Buhrow's tinyecm.c (https://www.mersenneforum.org/showpost.php?p=521028&postcount=84) an ECM implementation for unsigned 64 bit integers. This variant ignores carry-bits in the multiplication of 64 bit integers. Fails for more N than TinyEcm64 when N>54 bit.
    Author:
    Tilman Neumann
    • Constructor Detail

      • TinyEcm63

        public TinyEcm63()
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in class FactorAlgorithm
        Returns:
        The name of the algorithm, possibly including important parameters.
      • montMul63

        public static long montMul63​(long a,
                                     long b,
                                     long N,
                                     long Nhat)
        Montgomery multiplication of a*b mod n with regard to R=2^63. ("mulredc63x" in Yafu)
        Parameters:
        a -
        b -
        N -
        Nhat - complement of N mod 2^63
        Returns:
        Montgomery multiplication of a*b mod n
      • main

        public static void main​(String[] args)