Saved from https://leetcode-cn.com/problems/nim-game/submissions/
func canWinNim(n int) bool { return (n&3)!=0 }