Need help for PHP code?

Calvin

New member
I want to make a PHP program that can identify if a number is prime
If it is prime, the output is Yes! It is a prime
If not then, No! It is not a prime
It should start with
<?php
function PrimeTest($num)
{
(Function will be here)
}
PrimeTest(3)
?>
The 3 there can be changed to any number.
I use the latest PHP in XAMPP for windows
 
Back
Top