Trial division
Summary
Trial division is the simplest method to factor an integer or to test whether it is prime. It divides by the integers in turn, and it stops at the first that divides , or when . If no with divides , then is prime.
Remarks
The method is correct because a composite number has a prime factor at most its square root. It is enough to test the primes , but a test of all integers is also correct. For a number with digits, the method can need about divisions. Thus it is slow for large .
Further reading
About this page
| Tag | 0Z962ECCXR |
|---|---|
| URI | m2://0Z962ECCXR |
| Kind | concept |
| Writing | W1 stated |
| MSC | 11Y05 |
| Specializes | Primality test |
| Same as |
Markdown · JSON · Edit on GitHub
What this page needs for W2
- edge defines in: at least one definition (0 of 1)
- edge instance_of in: at least two examples (0 of 2)
- edge not_instance_of in: at least one non-example (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.