When I pass the code block created by passing my target number as a parameter, Scala curries up a new function. 当我传递代码块(将目标数(TN)字作为参数传递)时,Scala创建了一个新的函数。
Stated another way, given a list of all possible numbers up to a target number, how do I determine which ones are factors of the number? 换句话说,列出所有可能成为目标数(TN)的数字,如何确定哪一个才是该数的因子?
Divide the target number by each of these factors to get the symmetrical factor, and add it to the list of factors. 用这些因子除以目标数(TN),以获得对称因子,并将它加入因子列表中。
If you can harvest factors in pairs, you need only check factors up to the square root of the target number. 如果您成对获取因子,您只需要检查到目标数(TN)的平方根即可。