Write All the Prime Numbers Less Than 10
Ans:- Prime number is a natural number which is not a product of two similar numbers. A prime number is a number that can only be divided by itself and one without remainders. A natural number is called a prime number if it is greater than one and cannot be written as the product of two numbers. The property of being a number prime is known as primality. Prime numbers less than ten are 2,3,5,7.
2 is the smallest prime number. One cannot be considered a prime number as it has only one factor, and a prime number needs to have exactly two factors.0 and 1 both can not be considered prime numbers. Except for 0 and 1, a number is either a prime or a composite number. In ancient times Greek mathematician Euclid validated the concept that there is no largest prime number. Some observations on prime numbers are- Except for the number 2, all prime numbers are odd since an even number is divisible by two, making it composite. So the distance between any two prime numbers in a row is at least 2. In the list 2,3,5,7,11,13,17,19,23 and 29, we see successive prime numbers whose difference is exactly 2. There are larger gaps also between consecutive prime numbers, like the six number gap between 23 and 29. Another observation shows that there are four prime numbers in the first group and the second, i.e. 1-10and 11-20, whereas, in the third group, i.e. 21-30, there are only two prime numbers.