As we know, prime numbers are whole numbers greater than 1, with exactly two factors, i.e. 1 and the number itself. Some examples of prime numbers are 2,3,5,7,11, 23, 31 etc.