+ 6

Why Time limit exceeds??

I can't understand why does this program doesn't take higher limits like 1000 and above and says time limit exceeded. What does it mean? This code prints Mersenne Prime nos from 1 to given limit Works well when limit is 100 or near to it... https://code.sololearn.com/cXUglmPMIjm2/?ref=app

31st Aug 2017, 11:48 AM
Abhishek Tandon
Abhishek Tandon - avatar
7 Answers
+ 10
All codes on code playground have a limited time before they are force closed. When this is reached, they show time limit-exceeded. They also show time limit exceeded for the things @Jonas and @Gaurav said, but it wouldn't show any output for lower numbers if that were the case here.
31st Aug 2017, 4:32 PM
Rrestoring faith
Rrestoring faith - avatar
+ 7
try again ... sometimes net speed goes down in sl
31st Aug 2017, 11:52 AM
Changed
Changed - avatar
+ 6
Thanks @Gaurav and @Jonas
31st Aug 2017, 11:56 AM
Abhishek Tandon
Abhishek Tandon - avatar
+ 5
@faith limited run time? Sorry I m still confused..:(
31st Aug 2017, 4:55 PM
Abhishek Tandon
Abhishek Tandon - avatar
+ 5
I mean if the code is running for longer than x amount of time, it will be terminated.
31st Aug 2017, 5:12 PM
Rrestoring faith
Rrestoring faith - avatar
+ 5
@faith ok :) Thank u!
31st Aug 2017, 5:20 PM
Abhishek Tandon
Abhishek Tandon - avatar
+ 1
The time limit exceeded is not a problem of the code itself, it's a problem of the internet connection to the server.
31st Aug 2017, 11:51 AM
Jonas Schröter
Jonas Schröter - avatar