Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
crypto/rsa: doc: reword "coprime to" in doc comments #31721
I found this paragraph in the
It is a mistake to say
This is explicitly stated by Stewart in Galios Theory 3rd Edition (ISBN 1-58488-393-6), in Definition 3.14 on the topic of coprimes.
I've usually heard it said as “X is co-prime with Y”, which follows from the general pattern in English of “X and Y are Z” being often interchangeable with “X is Z with Y”.
The usage queried here follows by combining that with another general pattern in 21st century English: to replace “with” with “to” in most common phrase patterns.
It is, yes, of their work in 1990, but that is only example. A google scholar search for
Taking a look at the original RSA paper, the terminology used is actually "x is relatively prime to y". I suspect that "x is coprime to y" became popular because of its terseness, as well as its ability to clearly communicate that these values are not individually prime. If we were to change anything, I'd gravitate toward "is relatively prime to".