Skip to content

Factorisation issues #4

@JASory

Description

@JASory

I tried to build this library to benchmark the QS implementation : it failed due to incorrect typing. A trivial fix to a understandable error, but running it reveals many more issues.

  1. BigUint's seem to be used for all arithmetic, this results in excessive overhead. Serious mathematical software heavily relies on the speed of hardware arithmetic, introducing multiprecision arrays needlessly can easily eliminate theoretical time complexity improvement
  2. Due to 1. PollardRho is very slow. For instance, factoring 1125899906843507^2 takes 66s on my machine, my own pollard-rho implementation takes around 1s.
  3. Quadratic sieve fails for many semiprimes. Infact it seems like it only works for small factors which pollardrho is faster for anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions