var lo = 100 var hi = 1_000 say gather { for k in (lo.isqrt .. hi.isqrt) { take(k**2) if k.is_odd } }
[121, 169, 225, 289, 361, 441, 529, 625, 729, 841, 961]
Last updated 2 years ago