Skip to content

Instantly share code, notes, and snippets.

@evictor
Last active February 13, 2017 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evictor/83ec6c024031f7a7a47734d019e8d906 to your computer and use it in GitHub Desktop.
Save evictor/83ec6c024031f7a7a47734d019e8d906 to your computer and use it in GitHub Desktop.
val divisors = 20 to 3 by -1
(2520 to Int.MaxValue by 2).find(x => divisors.forall(x % _ == 0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment