Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
-- Number(s) below 100,000 giving the longest sequence length, using the hailstoneSequence(n) handler above.
|
||||
set nums to {}
|
||||
set longestLength to 1
|
||||
repeat with n from 2 to 99999
|
||||
set thisLength to (count hailstoneSequence(n))
|
||||
if (thisLength < longestLength) then
|
||||
else if (thisLength > longestLength) then
|
||||
set nums to {n}
|
||||
set longestLength to thisLength
|
||||
else
|
||||
set end of nums to n
|
||||
end if
|
||||
end repeat
|
||||
Loading…
Add table
Add a link
Reference in a new issue