Takeaway matchstick game

Anyone remember the rules to this game?
Played by 2 people, each player takes turns removing 1, 2 or 3 matchsticks and the last person to remove a match (or matches) is the winner. The winning strategy of the game is to leave your opponent with 4 matches, whereby, removing 1 , 2 or 3 matches will leave you with the last and winning move.
Also, does anyone remember the name of this game?
Among other things, it used to be a popular science project, whereby students using crude circuits could “program” a machine to play.

Nim

Opus1
That’s it - and thank you.