but as the problem specifies, we have to calculate the sum of all those kind of numbers, and display the last 5 digits of that sum. now i don't know if that can be done quicker mathematically using some reductions are series stuff. my solution is taking up like around 2minutes to output the next number having that property after it reaches upto 111111111 (9 times 1)
and it stopped at 10 times 1 (1111111111)

edit: i forgot to declare the paramater of the getNumberLength() function as unsigned long long.
it might go beyond 10x 1s i guess then

so how do i make it faster? some high level maths to reduce the prediction of sum's last 5 digits to a fewer iterations or do i need some compiler optimization..
hell i don't even know what i'm talking about xD when it comes to optimizations.
i have a 32 bit core2duo intel p8600 processor,if that might help in any thing for explaining the slowing down of the execution

i know i'm a lousy programmer, i use many unnecessary variable declarations,iterations, inefficient loops etc. my friends tell me that all the time. but i'm only learning
here's the code