Example 22 : Check whether 1728 is a perfect cube by using prime factorisation.