The busy beaver problem, again, assumes it is running on a Turing machine with infinite memory.
Don't confuse a program defined using a finite number of states with a machine that can only have a finite number of states. It's just another example of the points I'm making about how a theoretical mathematical problem is an interesting curiosity and might even be an interesting problem to solve but it does not necessarily apply to the real world. And how everyone seems to think that this mathematical problem applies to programs running in real-world computers.
Someone else mentioned the busy beaver problem and I've given a more complete answer there: