Firstly, two prime numbers need to be set:
In this example of encryption, we've limited the prime numbers to below 100.
Also you must choose different values for the primes
P and Q.
Back to the explanation of public-private key encryption
or my home page