You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/algebra/factorization.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ This is the most basic algorithm to find a prime factorization.
17
17
We divide by each possible divisor $d$.
18
18
We can notice, that it is impossible that all prime factors of a composite number $n$ are bigger than $\sqrt{n}$.
19
19
Therefore, we only need to test the divisors $2 \le d \le \sqrt{n}$, which gives us the prime factorization in $O(\sqrt{n})$.
20
+
(This is [pseudo-polynomial time](https://en.wikipedia.org/wiki/Pseudo-polynomial_time), i.e. polynomial in the value of the input but exponential in the number of bits of the input.)
20
21
21
22
The smallest divisor has to be a prime number.
22
23
We remove the factor from the number, and repeat the process.
0 commit comments