Google's technical innovations and diverse business initiatives have contributed to its portfolio of over 50,000 patent assets worldwide."
https://insights.greyb.com/google-patents/
"Apple Inc: 2,541 patents granted"
"Microsoft Technology Licensing LLC: 2,418 patents granted."
"Qualcomm Inc: 2,149 patents granted."
"BOE Technology Group Co Ltd: 2,135 patents granted."
https://www.macrumors.com/2022/02/14/apple-ranks-seventh-wit...
If the richest and smartest companies are patenting their algorithms and software, you probably should too, if you don't want people copying your software code, and it gives you the right to sue those who do.
Always good to protect yourself, no matter where you are starting, or where you are going.
Heck, they're preventing innovation even with Arcade Sticks!! (see Hitbox Arcade attempts to bully competitors that had a superior product)