// Find Primes From $i to $x
$x = $_POST['i'];
$i = $_POST['x'];
$e = $_POST['e'];
$d = $_POST['d'];
$p = $_POST['p'];
$n = $_POST['n'];
$q = $_POST['q'];
$phi = $_POST['phi'];
$mprivate = $_POST['mprivate'];
//$_POST['i']
//$_POST['x']
//
//printf(" i is %d x is %d
",$i,$x);
//printf(" i is %d x is %d
",$i,$x);
//printf(" i is %d x is %d
",$i,$x);
//rintf(" i is %d x is %d
",$i,$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