24_game: prefer to over while
example/almost_prime.pn: simplify