
2 Oct
2007
2 Oct
'07
11:25 p.m.
On Wed, Oct 03, 2007 at 01:22:25AM +0200, Roel van Dijk wrote:
Does it terminate?
Looks like you are summing all the natural numbers. On a turing machine it should run forever, on a real computer it should run out of memory. Unless I am missing something obvious :-)
There are only about 4 billion distinct values of type Int, 2 billion of which are positive. Integer is required for bigger values Stefan