
Create a function named divisors/Divisors that takes an integer and returns an array with all of the integer’s divisors(except for 1 and the number itself). If the number is prime return the string ‘(integer) is prime’ (null in C#) (use Either String a in Haskell and Result<Vec
Example:
1 |
divisors(12) # should return [2,3,4,6] |
Answer:
1 |
|




近期评论