Location: PHPKode > scripts > Primes Factory > primes-factory/example3.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 ;

$pf->insert_number( $n ) ;

echo "<b>$n</b> " ;

echo ( $pf->isperfect() ) ? "is" : "is not" ;

echo " perfect" ;

?>
Return current item: Primes Factory