One-way functions: easy forward, hard back
Multiplying two huge primes p and q is fast — a few milliseconds on a phone. Recovering p and q from their product n = p · q is not: the best classical algorithm known (the general number field sieve) runs in sub-exponential but super-polynomial time, and a 2048-bit n is comfortably out of reach for every machine ever built. This one-way property — cheap forward, ruinously expensive backward — is the foundation of public-key cryptography. RSA dresses the asymmetry up so that a public key can be handed to anyone and only the holder of the matching private key can read what was written back.