+ 2

**ERROR MESSAGE: TIME LIMIT EXCEEDED**

I am using the sololearn console itself to write and run programs. After writing a program, when I executed it, it shows the error message "Time limit exceeded". Why is this message showing? And how to fix this? https://code.sololearn.com/cc35Ua4IHsVe/?ref=app

5th Aug 2019, 5:03 AM
Drishya
Drishya - avatar
5 ответов
+ 5
What program are you having difficulties with?
5th Aug 2019, 5:09 AM
Faisal
Faisal - avatar
+ 3
Code Playground is an online IDE. For non-web languages, there's a limit to how long a program is allowed to run. There's no real "fix" to this apart from trying to get your program to finish executing quicker. Some common issues may include too much computation, too much printing, an non-terminated loop, etc, in which it might be a problem with your code. You should show it so that we can inspect it and figure out if anything is wrong.
5th Aug 2019, 5:11 AM
Fermi
Fermi - avatar
+ 3
As Fermi has pointed out, Sololearn is an online IDE with limited resourced allocation per user. If you want to run heavy programs you should try an IDE in your PC (such as Visual Studio, etc) or make your code lighter. Looking at your code the first thing that comes to my mind would suggest changing the loops complexity or even considering a lower range for the computation (I may be wrong, though).
5th Aug 2019, 5:39 AM
Jon
Jon - avatar
+ 2
I have inserted the code please inspect it and help me out. It's the code for emirp numbers
5th Aug 2019, 5:21 AM
Drishya
Drishya - avatar