Hacker News new | ask | show | jobs
by jrm4 3 days ago
Alright, guess I can ask this here. In my quizzes I ask a question something like "Which of the following can factor a large composite number orders of magnitude faster than brute forcing," and the answer is none of the above, this doesn't exist.

What do y'all think of this question? And is it still true? My gut is that it is, yes?

2 comments

I don't think that clearly excludes randomized algorithms, and if you don't Lenstra-Pomerance 1992 was already unconditionally proven to run in L[1/2].

There's also "can" vs. "proven worst case". Like, GNFS empirically has factored some large numbers faster than brute force would have taken.

But no, this claimed result doesn't seem to change anything about your question.

I don’t know about orders of magnitude but there are ways to factorize that are better than just brute forcing (trial division).

https://en.wikipedia.org/wiki/General_number_field_sieve

I think this is misleading enough to remove the questions, since someone probably can’t be expected to know how the runtime of this algorithm actually compares to trial division and how this depends on number size.