author | Christian Urban <christian.urban@kcl.ac.uk> |
Thu, 02 Nov 2023 13:53:37 +0000 | |
changeset 474 | b528d1d3d3c3 |
parent 424 | daf561a83ba6 |
permissions | -rw-r--r-- |
424 | 1 |
import C1._ |
373 | 2 |
|
424 | 3 |
assert(collatz_max(10) == (19, 9)) |
4 |
assert(collatz_max(100) == (118, 97)) |
|
5 |
assert(collatz_max(1000) == (178, 871)) |
|
6 |
assert(collatz_max(10000) == (261, 6171)) |
|
7 |
assert(collatz_max(100000) == (350, 77031)) |
|
8 |
assert(collatz_max(1000000) == (524, 837799)) |
|
9 |
assert(collatz_max(2) == (1, 2)) |
|
10 |
assert(collatz_max(77000) == (339, 52527)) |