Scala: larger numbers for simple algorithm funcs.