Forum Moderators: open

Message Too Old, No Replies

Determing a Prime Number

.....just can't get it

         

El_Es_Dee

12:30 am on May 17, 2004 (gmt 0)



"Write a function that determines if a number is prime or not. The function should accept a number and return true if the number is prime or false if the number is not prime. A prime number is a number that is divisible only by itself and one. For example, 10 is NOT prime since it si divisible by 2 and 5. The number 5 IS prime since it is divisible by 1 and 5 only."

i can't get it, anyone help me?

coopster

1:26 am on May 17, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, El_Es_Dee!

Does this thread on Javascript Prime Numbers [webmasterworld.com] help?