Prime Factorisation Method to Find a Cube