This is a good middle ground of performance, and readability.
I like the clever arithmetic. This might be the most efficient, as it doesn't use an intermediate collection.
Since it is known that the lowest divisor is 3, the range can start at 3.
Loading collection data...
This is a good middle ground of performance, and readability.
I like the clever arithmetic. This might be the most efficient, as it doesn't use an intermediate collection.
Since it is known that the lowest divisor is 3, the range can start at 3.