Task

Show the first   30   positive integers which are squares but not cubes of such integers.

Optionally, show also the first   3   positive integers which are both squares and cubes,   and mark them as such.




 
iscube(n) = n == round(Int, cbrt(n))^3
 
println(collect(Iterators.take((n^2 for n in 1:10^6 if !iscube(n^2)), 30)))
 