We definitely would need centuries for this, because Moore's law has been dead for a while, while the number of possible programs grows exponentially in it's length.
But I hope we have more efficient ways to do this in a century.