3 ms·
I have an O(N) algorithm for factoring any prime: Read each digit of the prime from the input tape and write it to the output tape. :P (Perhaps you meant facto
by nullc 7y ago
I have an O(N) algorithm for factoring any prime: Read each digit of the prime from the input tape and write it to the output tape. :P
(Perhaps you meant factoring large semi-primes? :) )
- hoseja 7y agoI have an O(1) then!
- ColinWright 7y agoGiven that you have to read and then write each digit of the input I find it hard to believe that you have an O(1) algorithm - can you tell us what it is?