Skip to content

Instantly share code, notes, and snippets.

View fibo's full-sized avatar
🎼
Working from anywhere

Gianluca Casati fibo

🎼
Working from anywhere
View GitHub Profile
@fibo
fibo / gist:1203756
Created September 8, 2011 16:00 — forked from osfameron/gist:1203752
Crivello Haskell
import Data.List
import Debug.Trace
-- primes = 2 : 3 : zipWith getPrime primes (tail primes)
checkZeros :: [Int] -> Bool
checkZeros ms = any isZero ms
where isZero 0 = True
isZero _ = False
calculateMods :: Int -> [Int] -> [Int]