core_marking1/collatz_test2.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Mon, 11 Apr 2022 23:55:27 +0100
changeset 424 daf561a83ba6
parent 373 pre_marking1/collatz_test2.scala@d29cd5883c7b
permissions -rw-r--r--
added

import C1._

assert(collatz_max(10) == (19, 9))
assert(collatz_max(100) == (118, 97))
assert(collatz_max(1000) == (178, 871))
assert(collatz_max(10000) == (261, 6171))
assert(collatz_max(100000) == (350, 77031))
assert(collatz_max(1000000) == (524, 837799))
assert(collatz_max(2) == (1, 2))
assert(collatz_max(77000) == (339, 52527))