Project Euler #124: Ordered radicals