I am not only sharing the algorithm, but the principle inside for research purposes. I think it is a novel algorithm because of that: the use of the modular inverse the way it uses it.
I didn't compare it with the built-in Divisible, but it can be done, I guess ... I don't know which is the algorithm on Divisible. It could be useful if somebody tests this one or put it to work together with another one. I spent a lot of hours working on it, so any opinion, suggestion will be appreciated.
I am only sharing. Thanks for posting here.