Smallest square that begins with n: Difference between revisions
Content added Content deleted
Line 878: | Line 878: | ||
void main() |
void main() |
||
{ |
{ |
||
writefln("Prefix n^2 n"); |
|||
foreach(i; iota(1, 50)) { |
foreach(i; iota(1, 50)) { |
||
foreach(j; iota(upperBound)) { |
foreach(j; iota(upperBound)) { |
||
Line 891: | Line 890: | ||
{{out}} |
{{out}} |
||
<pre style='height:50ex;'> |
<pre style='height:50ex;'> |
||
Prefix n^2 n |
|||
1: 1^2 = 1 |
1: 1^2 = 1 |
||
2: 5^2 = 25 |
2: 5^2 = 25 |