[Haskell-cafe] Writing a function isPrime using recursion.

Kalashnikov iraqi_ak47 at hotmail.com
Wed Oct 15 18:41:05 EDT 2008

I'm supposed to write a function isPrime that checks whether or not a given
integer is a prime number or not. The function has to use recursion. The
only advice I was given, was to use a helper function.

I still have no clue how to do it :confused:

I'm new to Haskell by the way..please help..
View this message in context: http://www.nabble.com/Writing-a-function-isPrime-using-recursion.-tp20003309p20003309.html
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

More information about the Haskell-Cafe mailing list