Okay, so the title is a bit misleading but I had to keep it short.. Anyhow, if I have a number X what will the length of it's longest two factors be?
For example:
$X = 10000$
I want $3$ and $3$ (as in $100 \cdot 100$) not $4$ and $2$ (as in $1000 \cdot 10$). Is there a way to calculate these lengths without calculating the factors themselves? I need these lengths because I have found a way to factorise huge numbers very efficiently but my algorithm requires these lengths to calculate the factors..
I don't think there's a general way to find the length without also find the factors, but don't that stop you. If you have a "very efficient" algorithm to answer questions like
then you can factor 500-digit semiprimes fast in general -- just run your algorithm 250 times in parallel, trying all the possible combinations of lengths the factors can have.
A 250-fold increase in running time is nothing compared to the gap between "very efficient" and the currently best known factoring algorithms, so you'll be famous either way.