Find d, the private key
//echo "debug n==$n";
$max_search = 10000;
// first find out whether the value typed in by the user
// satisfies the equation
$result = `./checkd $d $e $phi`;
echo " result of checkd $result";
$too_large=0;
printf("initial result %s \n",$result);
if ( $result == "") { $result=0; $d=0; }
if ( $result == 1 ) {
echo "
value $d matches the de % phi == 1 criteria
";
printf("