Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4681385yWhy is every variable a single character?
You loose context quickly of everything happening in those nested while loops. -
@C0D4
Because I'm ADD and longer variable names bother me.
It's almost the code equivalent of a shitpost. Wadda ya want from me? -
C0D4681385y@Wisecrack I want the world! 😅
Haha, no, but I wasn't shit posting.
I was intrigued and went looking and got lost with the lack of naming. -
@C0D4 You're looking at the hana script?
Basically all it does is:
calculate a variable (could call it anything) named h
Divides our starting value by h.
Assuming we could divide our lowest factor (lets call it a) by h, like so a/h, then we only need
iterate from √p/h to a/h to find a/h.
Any case, at each iteration we multiple by h again, adding some modifier value (m) and checking if it is a factor of our product by dividing by it and then taking the modulus 1 to see if theres a remainder.
We stop when we find a value of a/h (f is a placeholder for a because a is what we're trying to find) that returns 0 for p/floor(f*h)+m % 1
Of course we iterate m a little too (k is a max value for m but I just plugged a hard number in there because fuck it).
Edit: I was talking about my janky-ass code when I wrote about shitposting, not talking about you :P -
@sweetnothings
Why, are you disappointed?
edit: I'm averagely endowed if thats what you're asking, but I DO have a tongue that would legit put Gene Simmons to shame. -
@sweetnothings
> some black people can even blow themselves.
One of my former roomates I knew could do this. Discovered it one night to my lasting regret (always knock before entering any room)
Imagine the bar bets he could win! Imagine!
You know you want to!
Related Rants
So this is my github account
Only a small script on it for now.
https://github.com/fadedcafe
random
github