PHP

Error

 

Q1:

 

Write a function in PHP that receives a number as an input and returns true if the number is a prime number, and false if it is not prime.

 

 

Note: A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself.

 

 

    • 11 years ago
    • 1
    Answer(1)

    Purchase the answer to view it

    NOT RATED
    • code.rar