Skip to content

Instantly share code, notes, and snippets.

@joncfoo
Last active March 17, 2022 00:13
Show Gist options
  • Save joncfoo/7a9b6f3bdbbf77f940a7d7c3c2182696 to your computer and use it in GitHub Desktop.
Save joncfoo/7a9b6f3bdbbf77f940a7d7c3c2182696 to your computer and use it in GitHub Desktop.
project euler

Problem 1

If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.

Find the sum of all the multiples of 3 or 5 below 1000.

   +/ (+./ 0 = 3 5 |/ i. 1000) # i. 1000
233168
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment