// Find Primes From $i to $x
// if they put they parameters the wrong way round...
if ( $i > $x ) {
$t = $i;
$i = $x;
$x = $t;
}
$max_search = 2000000001;
$counter = 0;
if ( $i < $max_search && $x < $max_search && $x > 0 && $i > 0 ) {
for($i;$i<=$x;$i++) {
$f=sqrt($i);
for($z=1;$z<=$f;$z++) {
$y=$i%$z;
if($y==0)
$l++;
if($l>=2)
break;
}
if ($l<=1){
echo "$i ";
$b++;
}
$l=0;
}
}
else {
printf(" Parameter(s) with incorrect value. Use Values between 1 and %d",$max_search);
}
?>
Choose the prime numbers to use and then Cut and paste into the form