I need to create a function in sml that takes a single number and returns a list of all the numbers that are prime below it. I can do that but I dont know how to create a list so i can use to see if 1 is prime then 2 then 3 then 4 then 5 and so on.
Basicly i need a way to generate a list inside of an SML function and that list has the numbers from 2 to n.