I was just looking at the RSA encryption Wikipedia page. RSA encryption essentially boils down to our inability to factorise huge semi-primes.
But then I had the idea of converting the number to base $b$. If a base $b$ number $n$ ends in $0$, then $b|n$.
Furthermore, one only has to analyse base $p$, $p \in \mathbb{P}$ (prime numbers).
Therefore, if there exists an efficient algorithm for converting numbers to base $p$, would efficient factorisation be possible?
My question boils down to:
What makes trial division inefficient? Is it simply the nature of the algorithm? Why? Or is it the task of actually running through all possible divisors?
Thanks!