They don't even need to... You can have a correct implementation of RSA in like 20 lines of code. The cat was out of the bag 20 years ago.
Writing it yourself for the first time, or just copying some code off the internet, is going to have a vanishingly small chance of being actually secure.