please help me with this
With LINQ:
primeNumbers = Enumerable.Range(1, 100).Where(Function(n) (n > 1) AndAlso Enumerable.Range(2, n-1).Count(Function(m) n mod m = 0) = 1).ToArray
where primeNumbers is an array of integer.
1 Like