2048 is a single-player online and mobile game in which the objective is to slide tiles on a grid to combine them and create a tile with the number 2048. It is played on a simple gray 4×4 grid with tiles of varying colors overlaid that slide smoothly when a player moves them. If two tiles of the same number collide while moving, they will merge into a tile with the total value of the two tiles that collided. Higher-scoring tiles emit a soft glow. Every turn, a new tile (with a value of 2 or 4) will randomly appear in an empty spot on the board. When the player has no legal moves (there are no empty spaces and no adjacent tiles with the same value), the game ends.

If the largest possible tile value that can be achieved in the game is \(a^b\), where \(a\) is a prime number and \(b\) is a positive integer, find the value of \(a+b\).

Details and assumptions:

Assume the player is skillful enough and keep playing the game after they reach the target tile value, 2048.

The tiles that appear automatically on the board are all with a value of 2 or 4 only.