Anders Kaseorg's submission of Playing with Numbers | CodeChef