Finding 5 prime numbers >= 28
Is 28 a prime number?
Square root of 28 is less than 6.
The prime numbers smaller than 6 are:
[2, 3, 5]
So, we will check whether 28 is divisible by any of the above prime numbers
As 28 is divisible by 2, it is not a prime number.
Is 29 a prime number?
Square root of 29 is less than 6.
The prime numbers smaller than 6 are:
[2, 3, 5]
So, we will check whether 29 is divisible by any of the above prime numbers
29 is a prime number.
It is not divisible by prime numbers less than or equal to its square root 5.4:
[2, 3, 5]
Is 30 a prime number?
Square root of 30 is less than 6.
The prime numbers smaller than 6 are:
[2, 3, 5]
So, we will check whether 30 is divisible by any of the above prime numbers
As 30 is divisible by 2, it is not a prime number.
Is 31 a prime number?
Square root of 31 is less than 6.
The prime numbers smaller than 6 are:
[2, 3, 5]
So, we will check whether 31 is divisible by any of the above prime numbers
31 is a prime number.
It is not divisible by prime numbers less than or equal to its square root 5.6:
[2, 3, 5]
....
37 is a prime number.
It is not divisible by prime numbers less than or equal to its square root 6.1:
[2, 3, 5]
....
41 is a prime number.
It is not divisible by prime numbers less than or equal to its square root 6.4:
[2, 3, 5]
....
43 is a prime number.
It is not divisible by prime numbers less than or equal to its square root 6.6:
[2, 3, 5]
Finding 5 prime numbers >= 28