I searched and I found that I can use number_format function in php. But it can't even store 1 million digits . I am getting output as inf. Can someone help me please. If it's not possible in php then can it be done in C++ or Java ?
Update: I am using GMP but when I run script browser sent me response as "this site can't be reached, connection was reset". I disabled max execution time but it gives me same error. What should I do? Do I need to do any other changes in configuration?