RosettaCodeData/Task/Square-but-not-cube/Mathematica/square-but-not-cube.math

5 lines
105 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
s = Range[50]^2;
c = Range[1, Ceiling[Surd[Max[s], 3]]]^3;
Take[Complement[s, c], 30]
Intersection[s, c]