Skip to main content
3 of 5
deleted 1 characters in body
pt2121
  • 319
  • 3
  • 9

Haskell, 64

mapM print [n|n<-[2..999999],all((> 0).rem n)[2..n-1]]
pt2121
  • 319
  • 3
  • 9