https://perlweeklychallenge.org/blog/philippe-bruhat-challenge-001/