That&#x27;s not a fair comparison.  What about:<p>IntStream.range(0, 100).filter(i -&gt; i % 2 == 0).collect(Collectors.toList());<p>Disclaimer: I&#x27;m not writing Java nowadays, so this is my quick prototype from a quick google-session, it probably won&#x27;t compile :D<p>Edit: looks like I&#x27;m second, my google-session took too long :-)<p>Maybe bonus points for C#:
Enumerable.Range(0, 100).Where(i =&gt; i % 2 == 0);