CoCalc
Sharedsupport / 2018-04-07-135022.ipynbOpen in CoCalc

Examples for support purposes...

2+3
5
primesTo m = eratos [2..m]               
    where
    eratos []     = []
    eratos (p:xs) = p : eratos (xs `minus` [p, p+p..])
<interactive>:4:36: error: Variable not in scope: minus :: [a1] -> [a1] -> [a1]