3 ms·
I'm not quite sure whether compiler optimizations could catch that. How could they? Returning false on the first zero remainder is a different algorithm.
by kyberias 11y ago
I'm not quite sure whether compiler optimizations could catch that. How could they? Returning false on the first zero remainder is a different algorithm.
- goldenkey 11y agoIts the same result. Compilers only need to produce the correct behavior. Algos arent part of that when optimizations take hold.