Is 4 a prime number? What are the divisors of 4?

## Parity of 4

4 is an even number, because it is evenly divisible by 2: 4 / 2 = 2.

Find out more:

## Is 4 a perfect square number?

A number is a perfect square (or a square number) if its square root is an integer; that is to say, it is the product of an integer with itself. Here, the square root of 4 is 2.

Therefore, the square root of 4 is an integer, and as a consequence 4 is a perfect square.

As a consequence, 2 is the square root of 4.

## What is the square number of 4?

The square of a number (here 4) is the result of the product of this number (4) by itself (i.e., 4 × 4); the square of 4 is sometimes called "raising 4 to the power 2", or "4 squared".

The square of 4 is 16 because 4 × 4 = 42 = 16.

As a consequence, 4 is the square root of 16.

## Number of digits of 4

4 is a single-digit number, because it is strictly less than 10; 4 is in fact itself a digit.

## What are the multiples of 4?

The multiples of 4 are all integers evenly divisible by 4, that is all numbers such that the remainder of the division by 4 is zero. There are infinitely many multiples of 4. The smallest multiples of 4 are:

• 0: indeed, 0 is divisible by any natural number, and it is thus a multiple of 4 too, since 0 × 4 = 0
• 4: indeed, 4 is a multiple of itself, since 4 is evenly divisible by 4 (we have 4 / 4 = 1, so the remainder of this division is indeed zero)
• 8: indeed, 8 = 4 × 2
• 12: indeed, 12 = 4 × 3
• 16: indeed, 16 = 4 × 4
• 20: indeed, 20 = 4 × 5
• etc.

## How to determine whether an integer is a prime number?

To determine the primality of a number, several algorithms can be used. The most naive technique is to test all divisors strictly smaller to the number of which we want to determine the primality (here 4). First, we can eliminate all even numbers greater than 2 (and hence 4, 6, 8…). Then, we can stop this check when we reach the square root of the number of which we want to determine the primality (here the square root is 2). Historically, the sieve of Eratosthenes (dating from the Greek mathematics) implements this technique in a relatively efficient manner.

More modern techniques include the sieve of Atkin, probabilistic algorithms, and the cyclotomic AKS test.

## Numbers near 4

• Preceding numbers: …2, 3
• Following numbers: 5, 6

### Nearest numbers from 4

• Preceding prime number: 3
• Following prime number: 5
Find out whether some integer is a prime number