CoCalc Public Filessupport / 2018-04-07-134131-haskell.ipynbOpen in with one click!
Author: William A. Stein
Description: Jupyter notebook support/2015-06-04-141749-bokeh.ipynb
In [ ]:
2 + 3
In [3]:
(+) 2 3
5
In [4]:
putStrLn "Hello from CoCalc"
Hello from CoCalc
In [ ]:
primesTo m = eratos [2..m] where eratos [] = [] eratos (p:xs) = p : eratos (xs `minus` [p, p+p..])
In [12]:
primesTo 10
<interactive>:3:5-22: Non-exhaustive patterns in function eratos
In [ ]: