Project Euler Problem 62 Solution

Question

The cube, 4106362541063625 (3453345^3), can be permuted to produce two other cubes: 5662310456623104 (3843384^3) and 6643012566430125 (4053405^3). In fact, 4106362541063625 is the smallest cube which has exactly three permutations of its digits which are also cube.

Find the smallest cube for which exactly five permutations of its digits are cube.

Haskell

Python