(upbeat music)
- [Instructor] For this challenge,
you'll write a program that calculates
the first 25 prime numbers.
That is all the prime numbers under 100.
A number is considered prime if it is a natural number,
that is a positive number with no fractional part,
a prime number must be greater than one.
So one is not a candidate, but two is,
and it cannot be a product of two smaller natural numbers.
Another way to say this is, it's only factors
or itself and one, or it can only be divided evenly
by itself and one.
This is a list of the first 25 prime numbers.
Your results should match these numbers.
The purpose of this challenge
is for you to use your knowledge of C++ operators
to choose the operators that make sense in this context.
Expect this exercise to take about 15 minutes.
It's fine if it takes longer,
or if you want to spend extra time experimenting
and trying different approaches.
My solution is in the next movie.