SomeBoyo@feddit.de to Programmer Humor@programming.dev · 2 年前It gets better the longer it runsfeddit.deimagemessage-square36linkfedilinkarrow-up1506arrow-down110
arrow-up1496arrow-down1imageIt gets better the longer it runsfeddit.deSomeBoyo@feddit.de to Programmer Humor@programming.dev · 2 年前message-square36linkfedilink
minus-squarequickpenlinkfedilinkarrow-up10arrow-down1·2 年前I don’t get it. Can someone Explain Like I’m 5? There is a function that always returns false, and then a bunch of random output, and one failed? Is this like another weird quirk in the JavaScript VM or something? Lol?
minus-squarequickpenlinkfedilinkarrow-up14·2 年前Ohhhh, so there isn’t anything crazy going on here. It’s just literally running that function and tallying up how accurate it is as a prime number checker. …and it gets more accurate the longer it runs. Okay, I see now. Thanks, lol.
I don’t get it. Can someone Explain Like I’m 5?
There is a function that always returns false, and then a bunch of random output, and one failed?
Is this like another weird quirk in the JavaScript VM or something? Lol?
deleted by creator
Ohhhh, so there isn’t anything crazy going on here.
It’s just literally running that function and tallying up how accurate it is as a prime number checker.
…and it gets more accurate the longer it runs. Okay, I see now. Thanks, lol.