To that end, I've chosen perfect Numbers.
为此,我选择了完全数。
The first two lines of output should be 6 and 28. Your program should find two other perfect Numbers in that range as well.
前两行输出时6和28。你的程序应该能够在上面的范围内找出另外的两个完美数字。
Listing 3 asserts that the only Numbers from 1 to 100,000 that are perfect are the ones in the list of known perfect Numbers.
清单3断定1到100000之间的完全数为已知完全数列表中的数字。
This code correctly reports perfect Numbers, but it runs very slowly for the negative test because I'm checking so many Numbers.
这段代码正确地报告了完全数,但是由于反向测试的原因,代码运行得非常慢,因为我需要检查大量数字。
After checking with Wikipedia to find the first few perfect Numbers, I can write a test that verifies that I can in fact find perfect Numbers.
在Wikipedia上查找到前几个完全数之后,我可以编写一个测试,它检查实际上是否可以找到完全数。
For those of you not up on your math trivia, the concept goes back to before Euclid (who did one of the early proofs deriving perfect Numbers).
对于不熟悉数学知识的人,此概念可追溯到Euclid之前(他完成了导出完全数的早期验证之一)。
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.
我至少需要两个测试:一个测试用于查看是否正确报告了完全数,另一个测试用于检查我没有得到误判断(falsepositives)。
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.
在下一期文章中,我将继续讨论完全数问题,演示在执行测试时形成的各种设计的更多示例。
One solution is to pay much more attention to unemployment numbers, which, though not perfect, are generally not subject to revision and are more timely.
一个解决方法是更加关注失业人数,虽然这也不是最好的,但起码不会被修改而且更及时。
Plato thought Numbers (and geometric objects such as circles) existed in some abstract, eternal and perfect realm, of which mortals were granted only an occasional glimpse.
柏拉图认为数字(以及一些几何体,例如圆)存在于抽象、永久并且完美的领域中,人们只有通过偶然顿悟中才能领悟。
88 - Numbers are eternally perfect.
88-数字是永远完美无缺的。
Thus far, I've discussed emergent design in the context of the perfect-numbers problem.
到目前为止,我以处理完全数为背景讨论了紧急设计。
POV-Ray is one of the grandfather's of realistic 3d graphics creation software, full of those massive numbers-crunching tasks and perfect for our test.
POV - Ray是逼真3d图形创建软件的始祖之一,它完全由那些进行大量数字处理的任务构成,非常适合我们的测试。
Perfect number, amicable number and anti-sociable numbers are important topics in number theory.
完全数、相亲数以及孤立数一直是数论研究的一个重要课题。
Company's products with excellent performance, perfect after-sales service system, by the vast Numbers of users.
公司产品凭借优良的性能、完善的售后服务体系,深受广大用户的好评。
Secondly, my memory is perfect that I can recite more than 100 numbers orderly in 5 minutes.
第二,我的记忆力非常好,可以在5分钟内按顺序背诵100个数字。
Product quality by the vast numbers of users and has a perfect after-sale service system.
产品质量深受广大用户的好评,并有着完善的售后服务体系。
In this paper, we find out a kind of method of verifying whether an integer is quasi-amicable or not, and prove the Fermat numbers are never perfect or part of an quasi-amicable pair.
为了判断整数是否为拟亲和数,文章在讨论费玛数和数论函数性质的基础上,找到了一种验证一个整数是否是拟亲和数的方法,从而证明了费玛数不与其他正整数构成拟亲和数对的结论。
I know how this sounds, but I've mapped these Numbers to the dates of every major global disaster from the last 50 years in perfect sequence.
我随着这些数字追寻溯迹,发现每一个数字都与这50年间世界产生的灾难时间正确吻合。
I know how this sounds, but Ive mapped these Numbers to the dates of every major global disaster from the last 50 years in perfect sequence.
我跟着这些数字追随溯迹,发现每个数字都与这50年间世界发生的灾害工夫精确吻合。
I know how this sounds, but I % 27ve mapped these Numbers to the dates of every major global disaster from the last 50 years in perfect sequence.
我跟着这些数字追寻溯迹,发现每个数字都与这50年间世界发生的灾难时间精确吻合。
Working-class numbers became poorer when national wealth was increasing, national body organization couldn't be perfect, and couldn't regulate relations of product…
劳工阶层在社会财富增加的情况下却变得贫穷,原因在于国家机构不完善,未能对生产关系进行适度地调控。
With lots of activeties and fun things to find, My First Wipe Clean Numbers makes learning how to count easy. With a special pen and wipe clean pages, practice makes perfect!
可以反复擦写的纸板书,超大开本,孩子练习写数字的好帮手,一书两用:学英语,练写字,一举两得!
I know how this sounds, but I've mapped these Numbers to the dates of every major global disaster from the last 50 years in perfect sequence. Earthquakes, fires, tsunamis...
我跟着这些数字追寻溯迹,发现每个数字都与这50年间世界发生的灾难时间精确吻合。
I know how this sounds, but I've mapped these Numbers to the dates of every major global disaster from the last 50 years in perfect sequence. Earthquakes, fires, tsunamis...
我跟着这些数字追寻溯迹,发现每个数字都与这50年间世界发生的灾难时间精确吻合。
应用推荐