Smallest Factor

Given an nn-bit integer NN, find a non-trivial factorization N=pqN=pq (where p,q>1p, q>1 are integers) or return that NN is prime. For "first category" algorithms, the running time depends on the size of smallest prime factor.

Parameters

  • b

Filters

Computational Model

Randomization

Approximation

Algorithms Table

Displaying 8 of 8 algorithms

See more
Lenstra elliptic curve factorization1987O(e(1+o(1))nlogn)O(e^{\sqrt{(1+o(1))n\log n}})O(n)O(n)
Williams' p + 1 algorithm1982O(2n)O(2^n)O(n)O(n)
Pollard's p − 1 algorithm1974O(Blog(B)log2(n))O(B \log(B) \log^2(n))O(n+B)O(n+B)
Wheel factorization1940O(2n/2)O(2^{n/2})O(n)O(n)
Euler's factorization method1940O(2n/2)O(2^{n/2})O(n)O(n)
Special number field sieve1940O(exp((1+o(1))(32n/9)1/3(logn)2/3)O(\exp((1+o(1))(32n/9)^{1/3}(log n)^{2/3}), under assumption about numbers in a sequence behaving randomly in a given rangeO(Γn4/3logn)O(\Gamma n^{4/3} \log n)
Fermat's factorization method1894O(2n)O(2^n)O(n)O(n)
Trial division1202O(2n/2)O(2^{n/2})O(n)O(n)

Reductions Table

Insuffient Data to display table

Other relevant algorithms

Displaying 1 of 1 other relevant algorithms