This guy asserts:Ill say it  the computer was invented in order to help to clarify  a philosophical question about the foundations of mathematics.  (This problem being Entscheidungsproblem - The Decision Problem)The reference here states that the Church-Turing thesis was attempting to answer this question.My question is - is it true that modern computers are a byproduct of trying to solve 'The Decision Problem'?(My intuition told me that modern computers were more a byproduct of trying to break Nazi encryption codes). (perhaps with some pre-war German influence). 
Was the reason that Computers were invented to solve a philosophical question about the foundations of mathematics?
computability;ho.history overview;machine models
I can see his point, but I think he's really  (deliberately?) confusing computation (and the mathematics thereof) and computers.A computer is certainly a device for performing computation, but what Church and Turing created was a (well, two, but they're the same) theoretical (read mathematical) model of the process of computation. That is, they define a mathematical system which (if you believe the Church-Turing thesis) captures what it is possible to compute on any machine that can perform mechanical computation (mechanical in the sense that it can be automated, and yes, that's a little hand wavy, but that's another story).Computers don't work like Turing Machines (or the Lambda calculus, which doesn't even pretend to be a machine). Bits of them look kind of similar, and indeed Turing does play an important role in the development of modern computers, but they're not a byproduct of the maths, any more than aeroplanes are a byproduct of the dynamics that describe airflow across their wings. 