Friday April 29th

Thursday April 28th

Wednesday April 27th

1 Kicks

Calculating prime numbers with LINQ in C#

It is a beautiful proof of the power and expressiveness of LINQ. The query expression states that from each value i in the Enumerable.Range(2, max - 1) where all elements of the range Enumerable.Range(2, i – 2) satisfy the condition All(j => i % j != 0), we select i.


Commenting on Stories is limited for now and will open up to those recommended by the community. Learn how
Loading DotNetKicks...
brought to you by the Kicks Network