# Assignment 1

## Set Up

Set up your local development environment, by following the instructions here.

Create a Gitlab account, and familiarize yourself with the course repository.

## Problems

Pick three of the following.

Implement the

`map`

function using a fold. Your solution should look like the following for some`g`

and`acc`

.Implement the

`filter`

function using a fold. Your solution should look like the following for some`g`

and`acc`

.Implement

`foldl`

using`foldr`

.Write code to compute the smallest positive number that is evenly divisible by all the numbers from 1 to \(n\). Provide an answer for \(n = 20\).

Write code to compute the \(n\)th prime number. Provide an answer for \(n = 10001\).

## Submission instructions

Send an email to cs43-win1819-staff@lists.stanford.edu with either:

(Preferred) A link to a Gitlab / Github repository with your code.

A .zip file with your code.

Include

- Your Gitlab username.
- Your code.
- Answers for 4 or 5 if you choose them.