Prime Numbers Generator

A calculator that generates prime numbers is presented.
A prime number is a a whole number greater than 1 that has two factors only: 1 and the number itself.
Examples of prime numbers: 2, 3, 5, 7, 11, 13, 17, 19, ...
A natural number that is not a prime number is called a composite number and it can be represented as a product of prime numbers in a unique way.
Example of composite numbers: 4, 9 , 10 , 20
The above composite numbers can be written as the product of prime numbers in a unique way as follows:
4 = 2 x 2 , 9 = 3 x 3 , 10 = 2 x 5 , 20 = 2 x 2 x 5
Press on "Generate More Prime Numbers" to generate as many prime numbers as you wish.