Skip to content

Commit

Permalink
Is it cheating to use inspection?
Browse files Browse the repository at this point in the history
  • Loading branch information
trptcolin committed Oct 1, 2012
1 parent 5df75f4 commit 7c1fb44
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions 5.sml
@@ -0,0 +1,10 @@
(* 2520 is the smallest number that can be divided by each of the numbers from 1
* to 10 without any remainder.
*
* What is the smallest positive number that is evenly divisible by all of the
* numbers from 1 to 20?
*)

val answer = 19 * 17 * 13 * 11 * 7 * 5 * 3 * 2 *
8 (* gets to 4,8,12,16,20 *)
* 3 (* gets to 9,18 *);

0 comments on commit 7c1fb44

Please sign in to comment.