Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
C0D45568235dWhy is every variable a single character?
You loose context quickly of everything happening in those nested while loops.
@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
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.
> 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!
@sweetnothings they were just jealous bitches.