I just posted this an someone else's page, but I need it as soon as possible. It is a simple assignment that won't take anyone with experience in Haskell long to do. if you can get back to me as soon as possible it would be appreciated.
Tonight we were given an introduction in Haskell. Then we were given an assignment. It is only 2 questions, but i have a lot of other stuff I need to do so I can't do it. This assignment is due on Wednesday at 4pm eastern time. I don't need anything fancy because we were just shown Haskell today. I would appreciate it if you could help me. Here is the assignment.
a) Take a look at the definition of twin primes: [url removed, login to view] Write a Haskell function that, for input n, outputs a list of the first n twin primes, where each twin primes is shown as a pair (a, b).
b) Now take a look at the definition of perfect numbers:
[url removed, login to view]
Write a Haskell function that, for input n, outputs a list of all perfect numbers less than or equal to n.