Created
August 1, 2014 17:29
-
-
Save prakhar1989/f2dfb608baefc38a9969 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (*>* Problem 5 *>*) | |
| (* few_divisors n m should return true if n has fewer than m divisors, | |
| * (including 1 and n) and false otherwise: *) | |
| few_divisors 17 3;; | |
| - : bool = true | |
| # few_divisors 4 3;; | |
| - : bool = false | |
| # few_divisors 4 4;; | |
| - : bool = true | |
| (* The type signature for few_divisors is: *) | |
| (* few_divisors : int -> int -> bool *) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wait, fewer than 3 divisors, right? So
few_divisors 4 3 ;;should be true also