--- from: http://rosettacode.org/wiki/Square_but_not_cube