Odd and square numbers: Difference between revisions
Created Nim solution.
No edit summary |
(Created Nim solution.) |
||
Line 751:
<pre>
121
169
225
289
361
441
529
625
729
841
961
</pre>
=={{header|Nim}}==
<syntaxhighlight lang="Nim">import std/math
for n in countup(11, sqrt(1000.0).int, 2):
echo n * n
</syntaxhighlight>
{{out}}
<pre>121
169
225
|