I just patented the following code:
Print "Hello World!"
You just wasted $1500 then. Your patent will be easily struck down due to prior art, so though you have a patent, you will only succeed in getting anything out of it if you charge so little to license it it would cost a company less to license it than to fight it in court.