That is true, it's all very basic. I was thinking of RSA encryption, yes. Modulo is also good for a lot of other things in programming though.

It's still stuff that people figured out though, without having any real use of it, until thousands of years later.