Monetizing an algorithm

No.12150785 ViewReplyOriginalReport
If i invented an algorithm how could I monetize it?

People can just copy it once it is released, I can copyright maybe so that the law makes it illegal to replicate it for commercial purposes, or I can keep it secret while still using it(how?)

Is it even a thing?