Skip to content
← Back to Community
Abusing the Unlimited time limit
Profile icon
HahaYes

Because of the fact that Repl doesn't have a time limit on the projects, I could theoretically find the world's largest prime number in a couple of hours.
Cool Animations though

Voters
Profile icon
Leroy01010
Profile icon
Kookiez
Profile icon
Muffinlavania
Profile icon
Port8080
Profile icon
CurlingRocks36
Profile icon
ZahraAlali
Profile icon
MrPerson01
Profile icon
oignons
Profile icon
PXY
Profile icon
NoelB33
Comments
hotnewtop
Profile icon
HackermonDev

now that you brought this up they could add a timeout to repls

Profile icon
ChezCoder

@PDanielY i was thinking that to :(

Profile icon
Codemonkey51

It already times out after 30min @PDanielY

Profile icon
HackermonDev
Profile icon
HahaYes

@Codemonkey51 Wait WHAT

Profile icon
Jakman

You can do the same for free with an ide...

Profile icon
HahaYes

@Jakman No it has a time limit exceeded thing

Profile icon
HahaYes

@HahaYes Most desktop ides have a time limit of 2 secs, and C++ is the only way to get the most out of it because it is the fastest

Profile icon
RiazuMacroni

Mine began with the number 69.
V(¬‿¬)V

Profile icon
CodingCactus

@uhmansoori no it didn't because 69 isn't a prime number lol

Profile icon
HahaYes

@CodingCactus Lol give this a like

Profile icon
CodingCactus

@uhmansoori

no it didn't because 69 isn't a prime number lol

unless it doesn't actually give you prime numbers meaning that it doesn't work

Profile icon
HahaYes

@CodingCactus Bro it gives you prime numbers

Profile icon
CodingCactus
Profile icon
HahaYes
Profile icon
RiazuMacroni

@CodingCactus I never said it was a prime number.
( ̄┰ ̄)

Profile icon
CodingCactus

@uhmansoori this is a prime number generator

Profile icon
RiazuMacroni

@CodingCactus Ok ok no need to get upset. I understand that it is a prime number generator.

Profile icon
HahaYes
Profile icon
CodingCactus

@uhmansoori i don't remember getting upset?

Profile icon
HahaYes

@CodingCactus huh, another toxic boi

Profile icon
CodingCactus
Profile icon
HahaYes

@CodingCactus it is a American joke

Profile icon
CodingCactus

@HahaYes i understand all the words, I was just unsure to whom you were referring?

Profile icon
HahaYes
Profile icon
CodingCactus
Profile icon
HahaYes
Profile icon
theangryepicbanana

I believe most repls timeout after ~30 minutes

Profile icon
PXY

After a few minutes of running, as the digit count changes come fewer and farther between, you get a sick animation.

Profile icon
HahaYes

@PXY Yep

Profile icon
HahaYes

@PXY It is like the adidas sign

Profile icon
Bookie0

Uuuu my eyes are breaking

Profile icon
NoelB33

What if I leave this on overnight?

Profile icon
HahaYes

@NoelBryan You will get some big numbers if you change line 6 to have 10000 zeroes. Give this a like will you?

Profile icon
NoelB33
Profile icon
HahaYes

@NoelBryan I'm currently running this and am at 300 digits

Profile icon
NoelB33

Oh geez, that’s a lot lol @HahaYes

Profile icon
HahaYes
Profile icon
HahaYes

@NoelBryan Wait are you leaving this overnight?

Profile icon
NoelB33
Profile icon
HahaYes
Profile icon
BobNeo

I’ll leave it on also! @NoelBryan

Profile icon
ChezCoder

pls dont make them take away this runtime limit

Profile icon
HahaYes

@ChezCoder eh... they won't if you have hacker I think... also why are you on a 4 month post I made... stalker? XD

Profile icon
ChezCoder

@HahaYes anything wrong with that? :/

Profile icon
HahaYes

@ChezCoder hrmmm are you going sneaky sneaky on my stuff lol

Profile icon
ChezCoder

@HahaYes no lol. There has been lots of bad talk about you on repl... for example, your cycle farming, etc. I wanted to see it for myself. Plus, I've been off from repl for a the entire summer, and want to get back and caught up on whats currently going on :>

Profile icon
HahaYes

@ChezCoder Haha lol I see. Only thing thats been cycle farmed are my tutorials. But hey, they've helped over 30 people.

Profile icon
rediar

Unfortunetly, you won;t be able to find the largest prime number since they are an infinite number of them.

Profile icon
HahaYes
Profile icon
HahaYes

Everyone post the largest prime number you found

Profile icon
HahaYes

Such a simple program. Such Amazment.

Profile icon
oignons

Why did I decide to see this WHILE I have a headache?

Really cool though!

Also, i know that this may crash your repl due to overflow on the variable, but you could do an infinite for loop with:

for(;;)

Just a thought!

Profile icon
HahaYes

@ipastrano Sorry about your headache

Profile icon
HahaYes

@ipastrano wait how? I'm not familiar with repl's ide, I mainly use Sublime Text. Can you copy and paste the code and show it to me?

Profile icon
oignons

@HahaYes It's gone, thanks

Profile icon
HahaYes
Profile icon
Codemonkey51

It times out after 30min it has a timeout