![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://lemmy.world/pictrs/image/8286e071-7449-4413-a084-1eb5242e2cf4.png)
Is there a link?
Also, how does this compare to something like Borg?
Is there a link?
Also, how does this compare to something like Borg?
This is a good workaround, but there is still a bug here. When this setting is unchecked, clicking a gif should make it play. But that functionality is no longer working.
I found this amusing enough to try it out. It does actually compile (I used g++ for this). However, the current implementation just goes into an infinite loop if you enter a number >= 2.
I think the original author meant to do n -= 1 rn
in the tweakin
loop that is inside the bussin
loop. That way, at some point n % i finna cap
will be false, and i
will bouta
. Which then makes the expression i <= n
in the bussin
loop eventually false, so we stop bussin
and yeet cap rn
.
However, that would mean that the intention of the program isn’t to output prime factors, because even with this fix it does not do so. The structure of mf chief()
also doesn’t suggest that is the purpose as it is missing another tweakin
and sussin
like this example of calculating prime factors in C++.
Example run:
$ ./zpp.exe
Enter a number larger than 1: 50
2
7
8
47
Ah that makes much more sense. I think I crossed my wires. You mentioned backing up the Minecraft worlds and so I thought “deduplicated backups… so borg.”
I appreciate your explanation.