Four is the number of letters in the ...: Difference between revisions
Content added Content deleted
Line 202: | Line 202: | ||
function firstN(n = 201) |
function firstN(n = 201) |
||
countlet = CountLetters() |
countlet = CountLetters() |
||
print("It is interesting how identical lengths align with 20 columns.\n 1: 4") |
print("It is interesting how identical lengths align with 20 columns.\n 1: 4") |
||
iter_result = iterate(countlet) |
iter_result = iterate(countlet) |
||
itercount = 2 |
itercount = 2 |
||
Line 209: | Line 209: | ||
print(lpad(string(wlen), 4)) |
print(lpad(string(wlen), 4)) |
||
if itercount % 20 == 0 |
if itercount % 20 == 0 |
||
print("\n |
print("\n", lpad(itercount+1, 3), ":") |
||
elseif itercount == n |
elseif itercount == n |
||
break |
break |
||
Line 242: | Line 242: | ||
end</lang> {{output}} <pre> |
end</lang> {{output}} <pre> |
||
It is interesting how identical lengths align with 20 columns. |
It is interesting how identical lengths align with 20 columns. |
||
1: 4 2 3 6 2 7 2 3 5 4 2 4 8 3 2 3 6 5 2 3 |
|||
21: 5 3 2 3 6 3 2 3 5 5 2 3 5 3 2 3 7 5 2 3 |
21: 5 3 2 3 6 3 2 3 5 5 2 3 5 3 2 3 7 5 2 3 |
||
41: 6 4 2 3 5 4 2 3 5 3 2 3 8 4 2 3 7 5 2 3 |
41: 6 4 2 3 5 4 2 3 5 3 2 3 8 4 2 3 7 5 2 3 |
||
61: 10 5 2 3 10 3 2 3 9 5 2 3 9 3 2 3 11 4 2 3 |
61: 10 5 2 3 10 3 2 3 9 5 2 3 9 3 2 3 11 4 2 3 |
||
81: 10 3 2 3 10 5 2 3 9 4 2 3 11 5 2 3 12 3 2 3 |
81: 10 3 2 3 10 5 2 3 9 4 2 3 11 5 2 3 12 3 2 3 |
||
101: 11 5 2 3 12 3 2 3 11 5 2 3 11 3 2 3 13 5 2 3 |
101: 11 5 2 3 12 3 2 3 11 5 2 3 11 3 2 3 13 5 2 3 |
||
121: 12 4 2 3 11 4 2 3 9 3 2 3 11 5 2 3 12 4 2 3 |
121: 12 4 2 3 11 4 2 3 9 3 2 3 11 5 2 3 12 4 2 3 |