Skip to main content
deleted 2 characters in body
Source Link
pt2121
  • 319
  • 3
  • 9

Haskell, 6351

mapM print [n|n<-[2..999999]10^6],all((>0).rem n)[2..n-1]]

Haskell, 63

mapM print [n|n<-[2..999999],all((>0).rem n)[2..n-1]]

Haskell, 51

mapM print [n|n<-[2..10^6],all((>0).rem n)[2..n-1]]
deleted 1 character in body
Source Link
pt2121
  • 319
  • 3
  • 9

Haskell, 6463

mapM print [n|n<-[2..999999],all((> 0>0).rem n)[2..n-1]]

Haskell, 64

mapM print [n|n<-[2..999999],all((> 0).rem n)[2..n-1]]

Haskell, 63

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

Haskell, 6564

mapM_mapM print [n|n<-[2..999999],all((> 0).rem n)[2..n-1]]

Haskell, 65

mapM_ print [n|n<-[2..999999],all((> 0).rem n)[2..n-1]]

Haskell, 64

mapM print [n|n<-[2..999999],all((> 0).rem n)[2..n-1]]
formatting
Source Link
manatwork
  • 20.6k
  • 5
  • 51
  • 81
Loading
Source Link
pt2121
  • 319
  • 3
  • 9
Loading