Prime numbers are the numbers with two factors, 1 and the number itself. For example, 7 is a prime number, which is divisible by 1 and 7 only. If we divide 7 with any other number then a fraction value is produced. The contradictory part of a prime number is a composite number, which has more than two factors. In the number system, we have learned many types of numbers out of which prime and composite numbers are the most significant ones.
What is a Prime Number ?
A prime number is a positive integer having exactly two factors. If p is a prime, then it’s only factors are necessarily 1 and p itself. Any number which does not follow this is termed as composite numbers which means that they can be factored into other positive integers.