Free calculator tools. Fast, simple, no sign up.
Modern cryptography rests on prime numbers. The fact that multiplying two large primes is easy but splitting the result back into its factors is hard...
Modern cryptography rests on prime numbers. The fact that multiplying two large primes is easy but splitting the result back into its factors is hard is what keeps online banking and messaging private.
The RSA system picks two large primes, p and q, and multiplies them to make a public number n. Anyone can encrypt a message using n, but only someone who knows p and q can decrypt it quickly. Finding p and q from n alone is called factoring, and for numbers hundreds of digits long it would take the fastest computers far longer than the age of the universe. That gap between easy multiplication and hard factoring is the whole security of the system.
Primes are also used in hashing, digital signatures, and the random number generation behind secure connections. When you see the padlock in a browser, primes are doing the work.
With small primes 7 and 11, n is 77. Multiplying 7 by 11 is instant, but if you only knew n = 77, you would have to test divisors to find 7 and 11. With primes hundreds of digits long, that testing becomes impossible in practice.
A common misunderstanding is that encryption means hiding the method. Real security comes from the key, not from keeping the method secret.
Why is 91 not a good basis for RSA? (Answer: it factors easily as 7 times 13.)
The best way to make this stick is to use it three times: once while reading this guide, once tomorrow from memory, and once on a fresh problem. Each round takes a few minutes, and by the third the steps feel natural. If a step feels unclear, go back to the worked example and cover the answer while you redo it. Maths is a skill built from small correct repetitions, and this topic is a good place to practise that habit.
Why does this method work? Because each step keeps both sides equal, or keeps the value unchanged. Methods that preserve equality or value are safe to use again and again, and that is why they appear in so many topics.