Location: PHPKode > scripts > Primes Factory > primes-factory/example5.php
<?php

// This example shows how to the primesfactory class
// for pursuing other computations involving primes.

require_once('primesfactory.php');

$n = $_GET['number'];

$pf = new primesfactory ;

$bRet = $pf->isprime( $n ) ;

echo "<b>$n</b> is " ;
echo $bRet ? "" : "not " ;
echo "a prime number" ;

?>
Return current item: Primes Factory