for(i=0;i< String (1234455....upto >=500 digits);i++)

This is insane. Even with a 19 digit number (long precision), and running 1 million loops per second, it will take more than a hundred thousand years to complete. At about 24 digits it will take a time greater than the lifetime of the entire universe so far (13.5 billion years). What exactly do you really want to do here?

Ezzaral commented: So you think the expectation is unreasonable? :) +18
for(i=0;i< String (1234455....upto >=500 digits);i++)

I don't see any problem in this.....

If you believe in re-incarnation that is. ;-)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.