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

Haskell, 63

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