Study on the Perfect Numbers 关于完全数的研究
When researching and looking for the perfect numbers, man found the conclusion about correspondence between the even perfect numbers and the Mersenne primes.
人类在研究与寻找完全数时得到结论:偶完全数与梅森素数是一一对应关系。
I need at least two tests: one to see if the perfect Numbers report correctly and another to check that I don't get false positives. The unit tests are in Listing 2.
我至少需要两个测试:一个测试用于查看是否正确报告了完全数,另一个测试用于检查我没有得到误判断(false positives)。
In the next installment, I'll continue with the perfect Numbers problem, illustrating more examples of the kinds of design that can emerge if you get out of the way of your tests.
在下一期文章中,我将继续讨论完全数问题,演示在执行测试时形成的各种设计的更多示例。
应用推荐