How many primes are there that are less than 10,000

Assignment Help Operating System
Reference no: EM13943212

Write a program that prints out the first n primes, and n is input by the user. Example as follows:

How many do you want to see? 3000

1: 2
2: 3
....

25: 97
26: 101
....

2999: 27437
3000: 27449

Program should be written in three files:

primes.h
main.c
is_primes.c

Attached are parts of two files (primes.h, is_primes.c)

Explain how is_prime() works. Complete the program by writting main() in main.c. There are 168 primes that are less than 1000. Does the program confirm this? How many primes are there that are less than 10,000?

Attachment:- is-prime.zip

Reference no: EM13943212

Questions Cloud

A firm plans to split its stock : A firm plans to split its stock 2-for-1. Which of the following most likely will NOT occur?
Description of the device : The presentation should include a discussion of 3-5 device alternatives.  Included in the presentation should be a description of the device, including the manufacturer, the model, the seller, the cost, and a summary of the manufacturer specificat..
Market value of equity-book value of equity of a firm : The book value of equity of a firm is $100 million and the market value of equity is $200 million. The face value of debt of the firm is $50 million and the market value of debt is $60 million. What is the market value of assets of the firm?
Problem regarding the program life cycle : The process to develop software takes more than writing Visual Basic code. Software developers use the seven (7) steps of the Program Development Life Cycle. Select the two (2) steps that you believe are the most important in the cycle. Provide ex..
How many primes are there that are less than 10,000 : Write a program that prints out the first n primes, and n is input by the user.
Manufactures time series photographic equipment : Photo chronograph Corporation (PC) manufactures time series photographic equipment. It is currently at its target debt-equity ratio of .66. It’s considering building a new $65.6 million manufacturing facility. This new plant is expected to generate a..
Strategic implications of the blurring of boundaries : Identify the strategic implications of the blurring of boundaries between nonprofits and for-profits in the donor- advised funds field.
Differ only in their capital structure : Companies A and B differ only in their capital structure. A is financed 30% with riskless debt and 70% with equity; B is financed entirley with equity. Both companies operate in a perfect capital market and earn $200,000 of operating income each year..
An average convective heat transfer coefficient : The biot modulus for a 3 cm diameter sphere at 100degree C subjected to a convective air flow resulting in an average convective heat transfer coefficient from the surface of 30W/m2

Reviews

Write a Review

Operating System Questions & Answers

  Explian wired and wireless media

Discuss and explian wired and wireless media along with the drawbacks and benefits of each also Discuss the channel signaling systems used in voice communication along with the drawbacks and benefits of each.

  A borg unimatrix has 40-bit virtual addresses

A Borg Unimatrix has 40-bit virtual addresses and 32-bit physical addresses. Pages are 32 KB in size. How many entries are needed for the page table? Give all formulas, steps, and compute out the final number as an integer(in humanly readable deci..

  Regulation of the telecommunications industry

Discuss how has the telephone service changed over the past sixty years also explain how regulation of the telecommunications industry changed and what ar some of the outcomes of that change?

  Question 1a in a competitive market place pure competition

question 1a in a competitive market place pure competition is it possible to continually sell your product at a price

  Steps and sub steps required to start an e business

Discuss the steps and sub steps required to start an e-business. Assume the Idea is already approved and the viability is already established through e-business plan.

  Importance of having enough ram

Determine the importance of having enough RAM? Discuss how does it relate to how fast a computer can process data from a big database residing on ones hard drive?

  Discuss mitigation strategies

It is determined that 3-out of 5-businesses that experience downtime of forty-eight hours or more will be out of business within three years.

  Discuss some of the roles that server operating systems

Discuss some of the roles that server operating systems can provide to a network, such as certificate services, Windows Deployment Services, and application pushing services.

  Discussing the reasons unix internet commands

essay discussing some of the reasons UNIX Internet commands have remained mostly the same since the creation of the Internet.

  Encoding the data using the generator polynomial

Encode the data bit sequence 10011011100 using the generator polynomial and provide the code word.

  Many people would like to have their own business if you

many people would like to have their own business. if you were to start your own small business why would you take on

  Creating a boardroom quality microsoft

Construct a plan to set up a local area network based on the scenario given in Appendix A. Prepare a boardroom-quality Microsoft?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd