How Openpgp finds prime numbers?


I know that rsa uses prime numbers but when i create a new key pair on my computer how does the program finds the prime numbers where they come from ?