Browse Source

update haskell code for new haskel 2010 library standard

master
Dan Ballard 10 years ago
parent
commit
4a95633c47
  1. 3
      primes.hs

3
primes.hs

@ -1,7 +1,8 @@
-- Haskell version of a Prime Number Finder
-- haplo@mindstab.net
import System
import System.IO
import System.Environment
check i c m | i > m = [(show c) ++ " "]
| rem c i > 0 = check (i+2) c m

Loading…
Cancel
Save