4 ms·
That doesn't seem like a good way to generate "random" numbers, since it will only produce numbers with exactly two prime factors.
by cobaltoxide 3y ago
That doesn't seem like a good way to generate "random" numbers, since it will only produce numbers with exactly two prime factors.
- amenghra 3y agoCorrect. It will almost never produce an even number, so there's already one bit of entropy lost. It will also never produce lots of other numbers.
- nemo8551 3y agoThanks all, I hadn’t considered that but we do only use it for silly things and nothing work related but it’s worth a consideration.