Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

(´∀`) Prime numbers (,,゚Д゚)

Name: Anonymous 2007-04-15 11:11 ID:00E9fssW

|code]isPrime x = (filter (0 ==) (map (mod x) [2..x-1])) == [][/code]

Name: Anonymous 2007-05-15 13:41 ID:fB6+u2Vv

>>7
`where` is not really considered to make a new line and if-then-else is like a function. If you are going to say someone just removed the new-lines then that line has to have a semi-colon in there somewhere.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List