Write a program that establishes all the primes in the first positive integers. [ C++]

Re: Primes in the first positive integers. 80 80

You posted as if this is a job for hire. Please read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question

I also worry you left out a requirement as usually the app/program/code will ask for the first n positive integers.

No matter, I bet this has been written in over 20 languages. Let's find out.
Category: Primes -> https://rosettacode.org/wiki/Category:Prime_Numbers
Classic solutions: -> https://rosettacode.org/wiki/Sieve_of_Eratosthenes

There you go. 130 different languages.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.