Third week homework Two

Source: Internet
Author: User

1. What is the number of conditions that I am looking for in this program?

There is a procedure to find that I must meet between 2 to 31 has a continuous two number of consecutive numbers can not be divisible, I for the addition of these two outside the smallest male number.

2. Does this number exist, and what is the minimum number?

Existence, 2123581660200

3. How much time does it take for a single-core CPU 4.0G Hz, memory and hard disk to run a computer program with sufficient resources?

CPU execution Speed 4*10^9/s, the loop executes approximately 12 times in an outer loop, the computer executes once about 80 cycles, outer loop 2,123,581,660,200 times

2123581660200*12*80/(4*10^9*60) =8500min

Third week homework Two

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.