Square and Cube

Limits 1s, 512 MB

Turja is thinking of preparing a hard problem for intra AUST programming contest. He asked Alam and Shoaib for ideas. After putting a lot of effort, Alam, also known as a prominent thinker, proposed that providing prime factorization of a number, the task is to find out if the number is prime.  Then, Shoaib suggested that it would be more interesting to find out if the number’s a cube.


This is a companion discussion topic for the original entry at https://toph.co/p/square-and-cube