Project Euler #100: Arranged probability