I can do it in O(1). Give me a large prime number, and I'll tell you both of its factors immediately.