Current location - Training Enrollment Network - Mathematics courses - What are prime numbers and composite numbers, and how to calculate them?
What are prime numbers and composite numbers, and how to calculate them?
Prime numbers are also called prime numbers. A natural number greater than 1 is called a prime number, except for 1 and itself, which cannot be divisible by other natural numbers.

Composite number refers to the number divisible by other numbers (except 0) except 1 and itself in natural numbers.

Simply put, a number can only be divisible by 1 or itself to be a prime number, otherwise it is a composite number.

Example:

The smallest composite number is 4, which can be divisible by 1 and itself, or by 2.

The smallest prime number 2,2 can only be divisible by 1 and itself.

Extended data:

Complex attribute

1, all even numbers greater than 2 are composite numbers.

2. In all odd numbers greater than 5, all numbers with 5 are composite numbers.

3. Except 0, all natural numbers whose unit is 0 are composite numbers.

4. All natural numbers with units of 4, 6 and 8 are composite numbers.

5. The smallest (even) complex number is 4, and the smallest odd complex number is 9.

References:

Baidu encyclopedia-prime number

Baidu encyclopedia-composite number