There are only two kinds of software that can be patented now:
1, your software can solve some technical problems in the production process and you can apply for an invention patent.
2. Your software has hardware as the carrier, which can be used for invention and practical use.
However, if it is a pure algorithm, the definition of patent law is intellectual activity, and the patent is not protected, so you can consider applying for software copyright.