Programming, my boy, is to science what accounting is to calculus. I don't think you have even the beginning of a glimmer of understanding of what science is.
Not entirely true - I can assure you that, on a daily basis, I apply the scientific method to figuring out how to talk to undocumented "black boxes" (whether hardware, OS features, or just how to safely use buggy libraries I can't avoid or rewrite).
That said, your statement holds largely true in a bit different light than how you meant it...
In mathematics, you can spend a career mentally masturbating over your favorite "hard" problem, and retire after decades with nothing to show for it. In programming, if you work on a problem for five years, you'd damned well better get world-changing results, or find a new job.