Skip to content

Instantly share code, notes, and snippets.

@zephiransas
Last active December 13, 2015 16:59
Show Gist options
  • Save zephiransas/4944210 to your computer and use it in GitHub Desktop.
Save zephiransas/4944210 to your computer and use it in GitHub Desktop.
public class Problem1 {
public static void main(String... args) {
int value = Streams.intRange(1, 1000).filter(i -> i % 3 == 0 || i % 5 == 0).sum();
System.out.println(value);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment