Quadratic Sieve

A sieving procedure that can be used in conjunction with Dixon's factorization method to factor large numbers n. Pick values of r given by

 r=|_sqrt(n)_|+k,
(1)

where k=1, 2, ... and |_x_| is the floor function. We are then looking for factors p such that

 n=r^2 (mod p),
(2)

which means that only numbers with Legendre symbol (n/p)=1 (less than N=pi(d) for trial divisor d, where pi(d) is the prime counting function) need be considered. The set of primes for which this is true is known as the factor base. Next, the congruences

 x^2=n (mod p)
(3)

must be solved for each p in the factor base. Finally, a sieve is applied to find values of f(r)=r^2-n which can be factored completely using only the factor base. Gaussian elimination is then used as in Dixon's factorization method in order to find a product of the f(r)s, yielding a perfect square.

The method requires about exp(sqrt(lnnlnlnn)) steps, improving on the continued fraction factorization algorithm by removing the 2 under the square root (Pomerance 1996). The use of multiple polynomials gives a better chance of factorization, requires a shorter sieve interval, and is well suited to parallel processing.

QuadraticSieve

A type of quadratic sieve can also be used to generate the prime numbers by considering the parabola x=y^2. Consider the points lying on the parabola with integer coordinates (y^2,y) for y=2, 3, .... Now connect pairs of integer points lying on the two branches of the parabola, above and below the x-axis. Then the points where these lines intersect the x-axis correspond to composite numbers, while those integer points on the positive x-axis which are not crossed by any lines are prime numbers.

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.