Top: Science: Mathematics: Number Theory: Factoring


[ history ]

Trial Division

As an integer n is composite iff it has a prime factor 1 < p < n, then a factor d of n can be found by testing if n divided by d is an integer for some 1 < d < n. If so, then d is a factor, and testing continues for n/d.

However, this is usually VERY slow, and only useful for small n, say n < 109.

If no d satisfies the test, then n is prime.



 All text is available under the terms of the GNU Free Documentation License. (See Copyright Policy for details.) 
© Open-Site Foundation, Inc.
Hosted by Android Technologies, Inc. the medical robotics news source.
Visit our sister sites dmoz.org | mozilla.org | chefmoz.org | musicmoz.org