Problem

Source: Kyiv City MO 2024 Round 1, Problem 7.3

Tags: game, number theory, Divisibility



Petro and Vasyl play the following game. They take turns making moves and Petro goes first. In one turn, a player chooses one of the numbers from $1$ to $2024$ that wasn't selected before and writes it on the board. The first player after whose turn the product of the numbers on the board will be divisible by $2024$ loses. Who wins if every player wants to win? Proposed by Mykhailo Shtandenko