overloading function call operator
return next number, throw exception to stop
Merge pull request #1 from bszcz/master

another generator idea; from bszcz (aka Bartosz)