Test whether the numbers 343,516,729,8000 are perfect cubes or not
343 is a perfect cube as it is a cube of 7