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.




1 1 1
[2O30>~][
   [$$*2O$$**>][\1+\]#
   1O$$**1O$*>[$$*.@1+@@" "]?
   1+
]#
%%%
10,