Executable library: Difference between revisions
Content added Content deleted
Line 676: | Line 676: | ||
mostfreq, maxcount |
mostfreq, maxcount |
||
end |
end |
||
nlen, cnt = countstones(1,99999) |
nlen, cnt = countstones(1,99999) |
||
print("The most common hailstone sequence length for hailstone(n) for 1 <= n < 100000 is $nlen, which occurs $cnt times.") |
print("The most common hailstone sequence length for hailstone(n) for 1 <= n < 100000 is $nlen, which occurs $cnt times.") |