The game is a win for Aisling. Aisling wins by forcing Brendan to write down a prime number, which allows Aisling to claim the prize by writing 1 at the next step.
We say an integer is a 2g-position if it is of the form 2g where both g and 2g+1 are primes (such g are known as Sophie Germain primes). If Aisling can get to a 2g-position then a win is assured, as Brendan is forced to play one of 2, g or 2g+1, all of which are prime. The relevant 2g positions for this problem are 10 and 58.
Here is one of many possible winning strategies for Aisling.
Aisling divides 2023 by the prime 7, passing 289 to Brendan. As 289=172, Brendan has only two possible next moves: to 290 or to 17. But 17 is prime so Brendan is forced to play 290. If Brendan moves to 290, then Aisling can move to either 10 or 58, both of which are 2g positions, so Aisling wins.