Coding challenge

Write some code to prove that if $x$ is a real number, such than $x^2$ is an integer and $x^3$ is an integer, then $x$ itself must be an integer.

Type your code here:


Lua reference

See your results here: