Thought I'd take a stab at the Project Euler questions. If anyone has any suggestions on how to improve these I'm all ears.
1. Add all the natural numbers below one thousand that are multiples of 3 or 5.
1. Add all the natural numbers below one thousand that are multiples of 3 or 5.
vb.net Code:
Private Function Problem1() As Integer Return Enumerable.Range(1, 999) _ .Where(Function(x) {3, 5}.Any(Function(y) x Mod y = 0)) _ .Sum() End Function