RosettaCodeData/Task/Square-but-not-cube/Mathematica/square-but-not-cube.math
2023-07-01 13:44:08 -04:00

4 lines
105 B
Text

s = Range[50]^2;
c = Range[1, Ceiling[Surd[Max[s], 3]]]^3;
Take[Complement[s, c], 30]
Intersection[s, c]