fun primeFilter([]) = [] | primeFilter(p :: ps) = p :: (List.filter (fn x => (x mod p <> 0)) ps)
Solving some problems, but in functional programming.
Those problems will be solved using sml.
fun primeFilter([]) = [] | primeFilter(p :: ps) = p :: (List.filter (fn x => (x mod p <> 0)) ps)
Solving some problems, but in functional programming.
Those problems will be solved using sml.