Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 4th, 2013  |  syntax: None  |  size: 0.10 KB  |  views: 113  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. primes = [ x | x <- [1..], length (factor x) == 1]
  2. factor n = [x | x <- [2..n+1], n `mod` x == 0]