I'm surprised nobody's given the obvious algorithm yet: while(i < BigInt(2).pow(10000)) ++i;
Before anyone complains, this algorithm is correct and does not break any of the rules as far as I can tell. :)
I think the timing attack is probably what he's really looking for.
Edit: as mattvanhorn pointed out, answer() is void, but that's ok... changed to a "constant time" algorithm. :)