PROJECT EULER · #0953
Factorisation Nim
In the classical game of Nim two players take turns removing stones from piles. A player may remove any positive number of stones from a single pile. If there are no remaining stones, the next player to move loses.
In Factorisation Nim the initial position of the game is chosen according to the prime factorisation of a given natural number
It can be verified that the first player to move loses for
Let
Find
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.