One could argue about whether wanting an atomic bomb in those days was irrational or totally evil. I definitely think there was ideology mixed in with the science. If one wants to blame the science, they should blame the math along with it. Was religion involved? Not sure. I'd have to look at the religious persuasion of the scientists who were essentially taking on the Nazis.
