I find some library with implementation of integer factorization function. Preferably some fast implementation in some popular library, to not reinvent the wheel.
Is there some ?
See primeFactors
in primes. It's reasonably fast, for example it factors 104729 * 104723
instantly.