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

90% of /prog/ cannot write this BASIC PROGRAM

Name: Anonymous 2008-05-08 20:11

Task: Using your language of choice, implement a program that will a) Prompt the user for 2 numbers, and b) output the number of prime numbers between the two numbers (inclusive.)

Output: A B N

Name: Anonymous 2008-05-13 6:13


sieve (x:xs) = x : sieve (filter (\a -> mod a x /= 0) xs)


Question: why people tend to use mod as an infix function?

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