Odd and square numbers: Difference between revisions

Content added Content deleted
No edit summary
(Created Nim solution.)
Line 751: Line 751:
<pre>
<pre>
121
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
169
225
225