enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. Trial division - Wikipedia

    en.wikipedia.org/wiki/Trial_division

    A definite bound on the prime factors is possible. Suppose P i is the i 'th prime, so that P 1 = 2, P 2 = 3, P 3 = 5, etc. Then the last prime number worth testing as a possible factor of n is P i where P 2 i + 1 > n; equality here would mean that P i + 1 is a factor. Thus, testing with 2, 3, and 5 suffices up to n = 48 not just 25 because the ...

  3. Integer factorization - Wikipedia

    en.wikipedia.org/wiki/Integer_factorization

    Continuing this process until every factor is prime is called prime factorization; the result is always unique up to the order of the factors by the prime factorization theorem. To factorize a small integer n using mental or pen-and-paper arithmetic, the simplest method is trial division : checking if the number is divisible by prime numbers 2 ...

  4. Fermat's factorization method - Wikipedia

    en.wikipedia.org/wiki/Fermat's_factorization_method

    Fermat's factorization method, named after Pierre de Fermat, is based on the representation of an odd integer as the difference of two squares: N = a 2 − b 2 . {\displaystyle N=a^{2}-b^{2}.} That difference is algebraically factorable as ( a + b ) ( a − b ) {\displaystyle (a+b)(a-b)} ; if neither factor equals one, it is a proper ...

  5. Pollard's rho algorithm - Wikipedia

    en.wikipedia.org/wiki/Pollard's_rho_algorithm

    The algorithm is used to factorize a number =, where is a non-trivial factor. A polynomial modulo , called () (e.g., () = (+)), is used to generate a pseudorandom sequence.It is important to note that () must be a polynomial.

  6. Sieve of Eratosthenes - Wikipedia

    en.wikipedia.org/wiki/Sieve_of_Eratosthenes

    Thus, on the k th step all the remaining multiples of the k th prime are removed from the list, which will thereafter contain only numbers coprime with the first k primes (cf. wheel factorization), so that the list will start with the next prime, and all the numbers in it below the square of its first element will be prime too.

  7. General number field sieve - Wikipedia

    en.wikipedia.org/wiki/General_number_field_sieve

    An optimal strategy for choosing these polynomials is not known; one simple method is to pick a degree d for a polynomial, consider the expansion of n in base m (allowing digits between −m and m) for a number of different m of order n 1/d, and pick f(x) as the polynomial with the smallest coefficients and g(x) as x − m.

  8. Shor's algorithm - Wikipedia

    en.wikipedia.org/wiki/Shor's_algorithm

    If those easy cases do not produce a nontrivial factor of , the algorithm proceeds to handle the remaining case. We pick a random integer 2 ≤ a < N {\displaystyle 2\leq a<N} . A possible nontrivial divisor of N {\displaystyle N} can be found by computing gcd ( a , N ) {\displaystyle \gcd(a,N)} , which can be done classically and efficiently ...

  9. Euler's totient function - Wikipedia

    en.wikipedia.org/wiki/Euler's_totient_function

    The difficulty of computing φ(n) without knowing the factorization of n is thus the difficulty of computing d: this is known as the RSA problem which can be solved by factoring n. The owner of the private key knows the factorization, since an RSA private key is constructed by choosing n as the product of two (randomly chosen) large primes p and q.