Prime Number Generator upto required numberPrime Numbers - These are the numbers which have exactly 2 factors or
in other words they have only 1 and itself as factors. example 5 has exactly 2 factors 1 and 5.
Composite Numbers - Numbers which have more than 2 factors or
in other words they have 1 factor other than 1 and itself.
So to prove any number composite we have to give one factor other than1 and the number itself.