@Peilonrayz The answer just states “this is the fastest algorithm ..., the idea is to ...” without any reference to the code in the question. It does not even compare the algorithms or explain why it is faster. The same could be posted as an answer to
any question about prime factorization. In my opinion,
Why are alternative solutions not welcome? from Meta applies to the answer in its present form.