3 ms·
PowerShell solution: 1..[Math]::Sqrt(500) | %{$_*$_} 1 4 9 16 25 36 49 64 81 100 121 144 169 196
by useerup 7y ago
PowerShell solution:
1..[Math]::Sqrt(500) | %{$_*$_}
1
4
9
16
25
36
49
64
81
100
121
144
169
196
225
256
289
324
361
400
441
484