#include<iostream> // std::cout and std::endl
#include<cmath> // std::sqrt
// returns the next Prime number after the given numberunsigned next_prime (unsigned num) {
if (num<2) return 2;
++num;
unsigned max_factor {std::sqrt{num) + 1U};
for (unsigned factor=2; factor<max_factor; ++factor)
if (num%factor==0) return next_prime (num);
return num;
}
// print prime numbers to 1000
int main()
{
unsigned num=0;
while ((num=next_prime(num))<1000) std::cout<<num<<std::endl;
}
76127
The prime numbers (factors) of 1000 are: 2 and 5
168 prime numbers under 1000.
There are 168 prime numbers between 1 & 1000.
13 prime numbers
The prime factors of 1000 are: 2, 5
211. There is a list of the first 1000 prime numbers if you look for it in any serach engine.
Prime No: between 1000 to 9999= 54_( 42x3)
ANSWER: The first prime number after 1000 is 1009.
They are in exponents: 23*53 = 1000
yes. here is a list of the first 1,000 prime numbers. http://primes.utm.edu/lists/small/1000.txt
2357111317192329313741434753596167717379838997101103107109113127131137139149151157163167173179181191193197199211223227229233239241251257263269271277281283293307311313317331337347349353359367373379383389397401409419421431433439443449457461463467479487491499503509521523541547557563569571577587593599601607613617619631641643647653659661673677683691701709719727733739743751757761769773787797809811821823827829839853857859863877881883887907911919929937941947953967971977983991997